contentful-roku

BrightScript Contentful SDK


Keywords
brightscript, kopytko, kopytko-module, contentful, roku
License
MIT
Install
npm install contentful-roku@1.0.0

Documentation

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