evecloud-sdk
v3.0.4
Published
A library for interacting with the EveCloud API
Downloads
340
Readme
EveCloud JavaScript SDK
JavaScript client for the EveCloud API
Installation
Node.js
npm install evecloud-sdk
Browser
EveCloud CDN:
<script src="https://cdn.evecloud.xyz/sdk/bundle.js"></script>
unpkg CDN:
<script src="https://unpkg.com/evecloud-sdk@latest/dist/bundle.js"></script>
Usage
Most endpoints require authentication, either with an Access Token or API Token. EveCloud SDK provides a simple way to set the token for all requests.
const { setToken } = require('evecloud-sdk');
setToken('my-token');
/** index.js */
const { setToken, Account } = require('evecloud-sdk');
setToken('access-token');
Account.getInfo().then((data) => {
console.log(data.username);
});