Socket
Book a DemoInstallSign in
Socket

@ionic/pro-api-javascript-client

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ionic/pro-api-javascript-client

A simple ts client for Ionic Pro

Source
npmnpm
Version
0.0.5
Version published
Weekly downloads
9
800%
Maintainers
1
Weekly downloads
 
Created
Source

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);
});

Keywords

typescript

FAQs

Package last updated on 18 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts