0.0.2 • Published 1 year ago

@osoka.io/client v0.0.2

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

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
0.0.2

1 year ago

0.0.1

1 year ago