0.1.38 • Published 1 year ago

@netzoio/sdk v0.1.38

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

MIT Licensed Contributor Covenant Discord Follow on Twitter Hashnode Blog Visit our Channel

Documentation

Refer to the Netzo documentation for more details.

Installation

Deno

import { Netzo } from "https://deno.land/x/netzo/mod.ts";

Node

npm install @netzoio/sdk

Browser

<script type="module">
  import * as NetzoSDK from 'https://esm.sh/@netzoio/sdk?bundle'
  window.NetzoSDK = NetzoSDK
</script>

Usage

const netzo = Netzo({ apiKey: NETZO_API_KEY });

// api:
const services = await netzo.api.services.get();

// request:
const request = netzo.request({
  url: "https://jsonplaceholder.typicode.com/todos",
});
const todos = request.invoke();

// service:
const service = await netzo.service(SERVICE_ID);
const users = service.users.get();

// createClient:
const client = netzo.createClient({
  baseURL: "https://jsonplaceholder.typicode.com",
});
const todos = await client.todos.get();

Project Structure

.
├─ .github/
│   └─ workflows/
│       └─ ci.yml
├─ .vscode/
│   └─ extensions.json
│   └─ settings.json
├── src/
├─ .gitattributes
├─ .gitignore
├─ CHANGELOG.md
├─ LICENSE
├─ mod.ts
├─ mod.test.ts
├─ types.ts
└─ README.md
  1. .github: repository settings for GitHub

  2. .vscode: workspace settings for VSCode (apply when the workspace is opened)

  3. src/: main directory where source code is located

  4. mod.ts: entry point for the main module

  5. mod.test.ts: simple test for the main module entry point mod.ts

  6. types.ts: entry point for TypeScript types

  7. .gitattributes: a simple text file that gives attributes to pathnames

  8. .gitignore: specifies which files git should not track (not maintain a version history for)

  9. CHANGELOG.md: a curated, chronologically ordered list of notable changes for each version of a project (format based on Keep a Changelog, this project adheres to Semantic Versioning)

  10. LICENSE: license for the project

  11. README.md: text file containing useful reference information about the project

The filename mod.ts doesn’t come with any preconceived notions about how it might work. Deno does not treat index.(js|ts) in a special way. mod.(js|ts) is prefered over index.(js|ts) to avoid confusion of wether the filename can be left out of the module specifier.

Each module should come with its test as a sibling with the name modulename.test.(js|ts). For example the module foo.(js|ts) should come with its sibling foo.test.(js|ts).

License

Copyright (c) 2022 Netzo

Licensed under the MIT license.

0.1.38

1 year ago

0.1.35

2 years ago

0.1.36

1 year ago

0.1.37

1 year ago

0.3.30

2 years ago

0.3.36

2 years ago

0.3.35

2 years ago

0.3.34

2 years ago

0.3.33

2 years ago

0.3.32

2 years ago

0.3.29

2 years ago

0.3.28

2 years ago

0.3.27

2 years ago

0.3.26

2 years ago

0.3.25

2 years ago

1.30.0

2 years ago

0.1.31

2 years ago

0.1.32

2 years ago

0.1.34

2 years ago

0.1.27

2 years ago

0.1.28

2 years ago

0.1.29

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.25

2 years ago

0.1.26

2 years ago

0.3.20

2 years ago

0.3.23

2 years ago

0.3.21

2 years ago

0.3.19

2 years ago

0.3.18

2 years ago

0.3.6

2 years ago

0.3.5

3 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.3.4

3 years ago

0.3.9

2 years ago

0.3.17

2 years ago

0.3.16

2 years ago

0.3.15

2 years ago

0.3.14

2 years ago

0.3.13

2 years ago

0.3.12

2 years ago

0.3.11

2 years ago

0.3.10

2 years ago

0.1.10

3 years ago

0.1.11

3 years ago

0.1.12

3 years ago

0.1.13

3 years ago

0.1.14

3 years ago

0.1.15

3 years ago

0.1.20

3 years ago

0.1.21

3 years ago

0.1.0

3 years ago

0.3.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.16

3 years ago

0.1.8

3 years ago

0.1.17

3 years ago

0.1.7

3 years ago

0.1.18

3 years ago

0.1.19

3 years ago

0.1.9

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.1.3

3 years ago

0.1.6

3 years ago

0.3.3

3 years ago

0.1.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago