1.0.2 • Published 4 years ago

unity-asset-store-api v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Unity Asset Store API Client

Build Status npm version npm downloads

THIS IS NOT AN OFFICIAL API CLIENT, this is just a wrapper for the endpoints from the publisher panel

How to use

Install

  • npm i unity-asset-store-api

Examples

import AssetStoreClient from "unity-asset-store-api";

const token = "YOUR_TOKEN_HERE";
const publisherID = 15803;
const client = new AssetStoreClient(token, publisherID, { timeout: 60000 });

// Optionally you can leave the publisher ID undefined
// and pass it as the last argument of each function

await client.apiKey();
await client.downloads(2019, 09);
await client.packages();
await client.publisherOverview();
await client.revenue();
await client.sales(2019, 09);
await client.salesPeriods();
await client.userOverview();
await client.verifyInvoice("INVOICE NO");
await client.logout(); // This invalidates the token

How to get your token

Head over to the asset store publisher panel, open the site cookies and find a cookie named kharma_session, its value is your token.
Do not make your token publicly available. Logging out invalidates the token.

License

MIT

1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.7

5 years ago

0.0.4

5 years ago