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

0.5.41 • 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

2

Version

0.5.41

License

MIT

Unpacked Size

207 kB

Total Files

125

Last publish

Collaborators

  • opportunity