0.0.7 • Published 4 years ago
duda v0.0.7
Duda Node.js Library
A Node.js wrapper for Duda's Partner and App Store APIs written in TypeScript
SUPPORT FOR THE APP STORE API IS STILL UNDER DEVELOPMENT
API Documentation
See Duda's API Documentation for a complete reference.
Installation
npm install duda --save
// or
yarn install duda
Usage
const { Duda } = require('duda');
const duda = new Duda.PartnerAPI(token, Duda.environments.production);
// get a site and update it's template
duda.site.get.byAlias("348thwe3")
.then(site => duda.site.update.template.byAlias(site, 1234567))
.catch(error => console.log(error.status)); // e.g. 401