Currently, we have libraries for the following languages:
Node
npm install @dudadev/partner-api --save
// or
yarn add @dudadev/partner-api
const { Duda } = require('@dudadev/partner-api');
const duda = new Duda({
user: process.env.DUDA_API_USER,
pass: process.env.DUDA_API_PASS,
});
// get app manifest
duda.appstore.manifest.get({ app_uuid: 'app-uuid' })
.then((manifest) => console.log(manifest))
.catch((error) => console.error(error));
// get site details
duda.appstore.sites.get({
site_name: 'site-name',
token: 'authorization-code',
}, {
host: 'api-endpoint',
})
.then((site) => console.log(site))
.catch((error) => console.log(error));
Don't see your favorite language?
Let us know if you want (or are interested in writing) a library for a language not represented here!