https://github.com/bengreenier-archive/unity-package-download
Client for downloading packages from the unity package service
https://github.com/bengreenier-archive/unity-package-download
package unity
Last synced: 2 months ago
JSON representation
Client for downloading packages from the unity package service
- Host: GitHub
- URL: https://github.com/bengreenier-archive/unity-package-download
- Owner: bengreenier-archive
- License: mit
- Created: 2017-03-19T02:26:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-19T23:21:58.000Z (over 9 years ago)
- Last Synced: 2024-12-26T00:40:10.533Z (over 1 year ago)
- Topics: package, unity
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# unity-package-download
> Note: uses es6 classes, see [this](http://node.green/#ES2015-functions-class) for node version compatibility
[](https://travis-ci.org/bengreenier/unity-package-download)
Client for downloading packages from the unity package service.
__You must download one package manually before this will work, as you need to accept the unity TOS__.
It's important to note that __this is for downloading (not purchasing)__ packages -
as such, you can only get content you're already authorized to get.
To purchase yourself a package (not needed for free ones) go to [unity3d](https://www.assetstore.unity3d.com)
and click 'buy'.
## How
Do I...
### Install
Simple! Just `npm install unity-package-download`
### Use
See the following (or the [tests](./test/basic.js)):
```
const client = new UnityDownloadClient('sessionId')
client.download('packageId').then(...)
client.downloadMeta('packageId').then(...)
```
You'll probably also want to check out [unity-package-authentication](https://github.com/bengreenier/unity-package-authentication)
for securing a valid `sessionId`
## License
MIT