Ionic Pro API SDK
A simple JasvaScript SDK for interacting with Ionic Pro
UNDER CONSTRUCTION
This is still in active development, and is far from comprehensive at the moment. Most of it as as-of-yet undocumented and is presented "as is".
Installation
npm install --save @ionic/pro-sdk
Usage
import { Environment, ProClient, ProUser } from 'pro-client';
...
let cfg: Environment = { debug: true }
let client: ProClient = new ProClient();
...
client.login("username@test.com", "myAwesomePassword123").then((user: ProUser) => {
console.log("Logged in", user);
});
...
client.resource.apps.list().then((res: any) => {
console.log("My apps:", res);
}, (err: any) => {
console.error("Error getting apps:", err);
});