@osoka.io/client
v0.0.2
Published
Client for the osoka.io API suitable for Node.js server side applications
Downloads
4
Readme
Osoka.io API client
Osoka.io is the universal UGC-video factory that's provide simple widgets that collects and sort customers voices for your own application.
Quick start
Install library by your favorite package manager
npm install @osoka.io/client
or by yarn
yarn add @osoka.io/client
Client is implemented by repository pattern. You must create Client instance that will generate all necessary auth tokens for you.
const client = new OsokaClient(clientId, secret);
You can find your clientId at the profile page. Secrets can be managed at the api secrets page.
We are highly recommend not to store any secrets in your source code.
To manage any entity in the Osoka.io API use simple CRUD controllers which represent that entity.
const widgetController = new WidgetController(client);
const widgetList = await widgetController.list(); // request first 20 widgets