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

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

6

Version

0.5.33

License

MIT

Unpacked Size

176 kB

Total Files

103

Last publish

Collaborators

  • opportunity