contentful-roku
v1.1.1
Published
BrightScript Contentful SDK
Downloads
8
Maintainers
Readme
Contentful Roku
BrightScript Contentful SDK
Installation
npm i contentful-roku
Usage
' @import /components/libs/ContentfulSDK.brs from contentful-roku
sub init()
m._contentful = ContentfulSDK({
accessToken: "<My_Contentful_Access_Token>",
baseUrl: "http://cdn.contentful.com", ' default value
environment: "master", ' default value
space: "<My_Contentful_Space_ID>",
})
m._contentful.getSpace().then(onDataReceived)
end sub
sub onDataReceived(contentfulSpaceData as Object)
print contentfulSpaceData
end sub