Ionic Pro API Client
A simple JasvaScript client for interacting with Ionic Pro
Alpha Notice
This is still in active development, and is far from comprehensive at the moment.
Available API Resources
Installation
npm install --save @ionic/pro-api-javascript-client
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);
});