@cloudpss/http-client
TypeScript icon, indicating that this package has built-in type declarations

0.5.30 • Public • Published

@cloudpss/http-client

Http client for cloudpss APIs, use @cloudpss/fetch for http requests.

Example

import { HttpClient, GqlVariable } from '@cloudpss/http-client';

const client = new HttpClient({ token: 'xxx' });
const data = await client.gql.query`
  model(rid: ${GqlVariable('model/cloudpss/example', 'ResourceID!')}) {
    rid
    name
    description
    jobs
    configs
  }`;
const model = data.data.model;
// Do something with model...

Readme

Keywords

none

Package Sidebar

Install

npm i @cloudpss/http-client

Weekly Downloads

66

Version

0.5.30

License

MIT

Unpacked Size

171 kB

Total Files

99

Last publish

Collaborators

  • opportunity