Miss any of our Open RFC calls?Watch the recordings here! »

@ionic/pro-api-javascript-client

0.0.5 • Public • Published

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';
 
...
 
// Instantiate the client
let cfg: Environment = { debug: true }
let client: ProClient = new ProClient();
 
...
 
// Login to Ionic Pro
client.login("username@test.com", "myAwesomePassword123").then((user: ProUser) => {
  console.log("Logged in", user);
});
 
...
 
// List apps you have access to
client.resource.apps.list().then((res: any) => {
  console.log("My apps:", res);
}, (err: any) => {
  console.error("Error getting apps:", err);
});

Install

npm i @ionic/[email protected]

Version

0.0.5

License

MIT

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar