1.0.5 • Published 3 years ago

@pascaljp/soracom v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@pascaljp/soracom

A library to provide TypeScript / JavaScript API to access Soracom APIs. Most of the code is auto generated from the openapi YAML file, so all APIs are supported. If there is any bug or if there is any API that is not supported by this library, please report the problem on GitHub.

NPM Version

Install

npm i -S @pascaljp/soracom

Usage example

import * as Soracom from "@pascaljp/soracom";

async function main() {
  const configuration: Soracom.Configuration = await Soracom.GetSoracomConfiguration({
    email: process.env.SORACOM_EMAIL,
    password: process.env.SORACOM_PASSWORD,
  });

  try {
    const simApi = new Soracom.SimApi(configuration);
    const sims: Soracom.Sim[] = (await simApi.listSims()).data;
    console.log(sims);
  } catch (err) {
    console.error(err);
  }
}

main();

License

MIT

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago