File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 9
9
},
10
10
"author" : " Contentful <support@contentful.com>" ,
11
11
"license" : " MIT" ,
12
+ "tonicExampleFilename" : " tonic-example.js" ,
12
13
"scripts" : {
13
14
"clean" : " rimraf dist && rimraf browser-dist && rimraf coverage && rimraf out" ,
14
15
"build" : " npm run clean && npm run vendor && npm run build:dist && npm run build:standalone" ,
Original file line number Diff line number Diff line change
1
+ var contentful = require ( 'contentful' )
2
+ var client = contentful . createClient ( {
3
+ // This is the space ID. A space is like a project folder in Contentful terms
4
+ space : 'developer_bookshelf' ,
5
+ // This is the access token for this space. Normally you get both ID and the token in the Contentful web app
6
+ accessToken : '0b7f6x59a0'
7
+ } )
8
+ // This API call will request an entry with the specified ID from the space defined at the top, using a space-specific access token.
9
+ await client . getEntry ( '5PeGS2SoZGSa4GuiQsigQu' )
You can’t perform that action at this time.
0 commit comments