Browse Source

docs: update sdk

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/1679/head
Wing-Kam Wong 3 years ago
parent
commit
6425fc1917
  1. 12
      packages/noco-docs/content/en/developer-resources/sdk.md

12
packages/noco-docs/content/en/developer-resources/sdk.md

@ -1,12 +1,16 @@
--- ---
title: 'SDK' title: 'NocoDB SDK'
description: 'SDK' description: 'SDK'
position: 1400 position: 1400
category: 'Developer Resources' category: 'Developer Resources'
menuTitle: 'SDK' menuTitle: 'NocoDB SDK'
--- ---
We provide SDK for users to integrated with their applications. Currently only Javascript is supported. We provide SDK for users to integrate with their applications. Currently only SDK for Javascript is supported.
<alert>
Note: The NocoDB SDK requires API token for authorization. If you haven't created an API token, please check out <a href="./api-tokens" target="_blank">API Tokens</a> and create one first.
</alert>
### SDK For Javascript ### SDK For Javascript
@ -16,7 +20,7 @@ import { Api } from 'nocodb-sdk'
const api = new Api({ const api = new Api({
baseURL: 'http://<HOST>:<PORT>', baseURL: 'http://<HOST>:<PORT>',
headers: { headers: {
'xc-auth': '<AUTH_TOKEN>' 'xc-token': '<API_TOKEN>'
} }
}) })

Loading…
Cancel
Save