uapi-browser-sdk 0.1.13 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -18,7 +18,7 @@ npm i uapi-browser-sdk
18
18
  ```ts
19
19
  import { UapiClient } from 'uapi-browser-sdk'
20
20
 
21
- const client = new UapiClient('https://uapis.cn/api/v1')
21
+ const client = new UapiClient('https://uapis.cn', 'YOUR_API_KEY')
22
22
  const result = await client.social.getSocialQqUserinfo({ qq: '10001' })
23
23
  console.log(result)
24
24
  ```
@@ -33,7 +33,7 @@ console.log(result)
33
33
  <script type="module">
34
34
  import { UapiClient } from 'https://cdn.jsdelivr.net/npm/uapi-browser-sdk@latest/dist/index.js';
35
35
 
36
- const client = new UapiClient('https://uapis.cn/api/v1');
36
+ const client = new UapiClient('https://uapis.cn', 'YOUR_API_KEY');
37
37
  const data = await client.social.getSocialQqUserinfo({ qq: '10001' });
38
38
  console.log(data);
39
39
  </script>