candorstudios-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Candor Studios API - Javascript/Typescript

JS Library for Candor Studios' Freelancer API. Please see https://candorstudios.notion.site/Freelancer-API-Docs-14c9e5d3cd0f809b9aa7cc4f251c8d3e?pvs=74 for more documentation on the API and how it works.

Documentation

You can add the library to your project with:

npm install candorstudios-js

You can then get started by initializing a new instance of the Candor clas using your public API key found at https://dashboard.candorservices.net/api-dashboard.

Verifying a license

You can verify if a license is valid using this function:

let valid = await candor.verifyLicense(LICENSE_KEY, PRODUCT_ID);

You'll want to grab your product ID from https://dashboard.candorservices.net/license-manager by creating a new product and then adding a license. The license key should be added by the client, using some sort of config (we recommend remote configs, see below!). Assign your license to your client using the tools in the dashboard.

Retrieving a remote config

Remote configs allow clients to easily configure parts of their apps without having to mess with complicated or messy configuration files. You can use this function:

let obj = await candor.getConfig(CONFIG_ID);

to retrieve the remote config as a JS object. You can create a remote config at https://dashboard.candorservices.net/config-manager.

Need support?

If you need help with anything to do with this project, then please see the project-mercury-support channel in Discord under the FREELANCERS category.

Readme

Keywords

none

Package Sidebar

Install

npm i candorstudios-js

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

7.06 kB

Total Files

4

Last publish

Collaborators

  • seailz