dots-wrapper
v3.11.12
Published
Digital Ocean v2 api wrapper - javascript - typescript - nodejs
Downloads
17,951
Maintainers
Readme
dots
digital ocean api wrapper
installing
npm install --save dots-wrapper@latest
using
typescript
import { createApiClient } from 'dots-wrapper';
const myApiToken = 'my-long-token';
const dots = createApiClient({token: myApiToken});
const main = async () => {
const {data:{account}} = await dots.account.getAccount();
console.log(account);
};
main();
javascript/nodejs
const {createApiClient} = require('dots-wrapper');
const myApiToken = 'my-long-token';
const dots = createApiClient({token: myApiToken});
const main = async () => {
const {data:{account}} = await dots.account.getAccount();
console.log(account);
};
main();
browser
index.html
<script src='https://unpkg.com/dots-wrapper@latest/dist/index-browser.min.js'></script>
js.js
const {createApiClient} = window.dots;
const myApiToken = 'my-long-token';
const dots = createApiClient({token: myApiToken});
const main = async () => {
const {data:{account}} = await dots.account.getAccount();
console.log(account);
};
main();
docs
- account
- action
- app
- cdn-endpoint
- certificate
- container-registry
- customer
- database
- configure-database-cluster-eviction-policy
- configure-database-cluster-maintenance-window
- configure-database-cluster-sql-modes
- create-connection-pool
- create-database-cluster-db
- create-database-cluster-user
- create-database-cluster
- create-read-only-replica
- delete-connection-pool
- delete-database-cluster-db
- destroy-database-cluster
- destroy-read-only-replica
- get-connection-pool
- get-database-cluster-db
- get-database-cluster-eviction-policy
- get-database-cluster-sql-mode
- get-database-cluster-user
- get-database-cluster
- get-read-only-replica
- list-connection-pools
- list-database-cluster-backups
- list-database-cluster-dbs
- list-database-cluster-firewall-rules
- list-database-cluster-users
- list-database-clusters
- list-database-options
- list-read-only-replicas
- migrate-database-cluster
- remove-database-cluster-user
- resize-database-cluster
- restore-database-cluster-backup
- update-database-cluster-firewall-rules
- domain
- droplet
- change-droplet-kernel
- create-droplet
- create-droplets
- delete-droplet
- delete-droplets-by-tag
- destroy-droplet-and-all-associated-resources
- destroy-droplet-and-associated-resources
- disable-droplet-backups
- do-action-by-droplet-tag
- enable-droplet-backups
- enable-droplet-ipv6
- enable-droplet-private-networking
- get-droplet-action
- get-droplet-destroy-status
- get-droplet
- list-droplet-actions
- list-droplet-associated-resources
- list-droplet-backups
- list-droplet-kernels
- list-droplet-neighborhoods
- list-droplet-neighbors
- list-droplet-snapshots
- list-droplets
- power-cycle-droplet
- power-off-droplet
- power-on-droplet
- reboot-droplet
- rebuild-droplet
- rename-droplet
- reset-droplet-password
- resize-droplet
- restore-droplet
- retry-droplet-destroy
- shutdown-droplet
- snapshot-droplet
- firewall
- floating-ip
- image
- kubernetes
- add-container-registry
- create-kubernetes-cluster
- create-node-pool
- delete-kubernetes-cluster
- delete-node-pool
- delete-node
- get-clusterlint-diagnostics
- get-kubernetes-cluster-credentials
- get-kubernetes-cluster-kubeconfig
- get-kubernetes-cluster
- get-node-pool
- list-available-options-of-kubernetes
- list-kubernetes-cluster-available-upgrades
- list-kubernetes-clusters
- list-node-pools
- remove-container-registry
- run-clusterlint-on-kubernetes-cluster
- update-kubernetes-cluster
- update-node-pool
- upgrade-kubernetes-cluster
- load-balancer
- monitoring
- project
- region
- size
- snapshot
- ssh-key
- tag
- volume
- vpc