@tencent-sdk/capi-web
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

Tencent Cound API For Browser

Request tool for iaas.cloud.tencent.com, can only ussed in domain or subdomain of cloud.tencent.com

Prepare

Request tool for iaas.cloud.tencent.com, can only ussed in domain or subdomain of cloud.tencent.com

Specify document.domain to cloud.tencent.com:

<script>
  document.domain = 'cloud.tencent.com';
</script>

Import jQuery:

<!-- tencent jquery file is  suggested -->
<script src="//imgcache.qq.com/open/qcloud/js/version/201408/jquery.201408191328.js?t=20140821&amp;max_age=31536000"></script>

Usage

Using by npm module:

$ npm i @tencent-sdk/capi-wen --save
import { CapiRequest } from '@tencent-sdk/capi-web';
const data = await CapiRequest({
  region: 'ap-guangzhou',
  serviceType: 'scf',
  action: 'ListFunctions',
  data: {
    Version: '2018-04-16',
    Namespace: 'default',
    Offset: 0,
    Limit: 20,
  },
});

Using by script:

<script src="https://unpkg.com/@tencent-sdk/capi-web"></script>

License

/@tencent-sdk/capi-web/

    Package Sidebar

    Install

    npm i @tencent-sdk/capi-web

    Weekly Downloads

    1

    Version

    0.1.4

    License

    MIT

    Unpacked Size

    19.8 kB

    Total Files

    6

    Last publish

    Collaborators

    • yugasun