File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ contentstackClient.login({ email: 'EMAIL', password: 'PASSWORD'})
4747### Management Token
4848[ Management Tokens] ( https://www.contentstack.com/docs/developers/create-tokens/about-management-tokens/ ) are ** stack-level** tokens, with no users attached to them.
4949```
50- contentstackClient.stack({ apiKey : 'API_KEY', managementToken : 'MANAGEMENT_TOKEN' })
50+ contentstackClient.stack({ api_key : 'API_KEY', management_token : 'MANAGEMENT_TOKEN' })
5151.fetch()
5252.then((stack) => {
5353 console.log(stack)
@@ -64,7 +64,7 @@ var contentstackClient = contentstack.client({ authtoken: 'AUTHTOKEN' })
6464#### Fetch Stack Detail
6565Use the following lines of code to fetch your stack detail using this SDK:
6666```
67- contentstackClient.stack({ apiKey : 'API_KEY' })
67+ contentstackClient.stack({ api_key : 'API_KEY' })
6868.fetch()
6969.then((stack) => {
7070 console.log(stack)
@@ -79,7 +79,7 @@ var entry = {
7979 url: '/sampleEntry'
8080}
8181
82- contentstackClient.stack({ apiKey : 'API_KEY' }).contentType('CONTENT_TYPE_UID').entry().create({ entry })
82+ contentstackClient.stack({ api_key : 'API_KEY' }).contentType('CONTENT_TYPE_UID').entry().create({ entry })
8383.then((entry) => {
8484 console.log(entry)
8585})
@@ -93,7 +93,7 @@ var asset = {
9393 title: 'Asset Title'
9494}
9595
96- contentstackClient.stack({ apiKey : 'API_KEY' }).asset().create({ asset })
96+ contentstackClient.stack({ api_key : 'API_KEY' }).asset().create({ asset })
9797.then((asset) => {
9898 console.log(asset)
9999})
You can’t perform that action at this time.
0 commit comments