Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mukaschultze/unity-asset-store-api
API Client for Unity's Asset Store
https://github.com/mukaschultze/unity-asset-store-api
api asset asset-store store unity
Last synced: 21 days ago
JSON representation
API Client for Unity's Asset Store
- Host: GitHub
- URL: https://github.com/mukaschultze/unity-asset-store-api
- Owner: mukaschultze
- License: mit
- Created: 2019-09-27T00:58:17.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-10T15:58:19.000Z (over 3 years ago)
- Last Synced: 2024-10-04T12:51:35.390Z (about 1 month ago)
- Topics: api, asset, asset-store, store, unity
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/unity-asset-store-api
- Size: 101 KB
- Stars: 26
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Unity Asset Store API Client
[![Build Status](https://travis-ci.com/mukaschultze/unity-asset-store-api.svg?branch=master)](https://travis-ci.com/mukaschultze/unity-asset-store-api)
[![npm version](https://badge.fury.io/js/unity-asset-store-api.svg)](http://badge.fury.io/js/unity-asset-store-api)
[![npm downloads](https://img.shields.io/npm/dm/unity-asset-store-api.svg)](http://badge.fury.io/js/unity-asset-store-api)**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
```ts
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 functionawait 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](https://publisher.assetstore.unity3d.com), 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