Skip to main content

Platform Extensions

Geo Location

The Quickplay Platform determines user's geo-location based on incoming client IP. To access the platform determined geo location info, use the following extension API

Get geo location
endPoint = "https://<host>"
queryParameters = invalid

FLPlatformCoreExtensions().getGeoLocation(endPoint, queryParameters, platformAuthorizer, callContext, sub(context, response, error)
if error <> invalid
' failure
else
' success
end if
end sub)

Adobe Primetime - FLAT Token

To generate a Quickplay Access Token (FLAT) for TVE flows via Adobe Primetime, use the below extension API by passing the following info:

  • deviceId: Unique device identifier. Refer to Secure Playback for generating a unique device id
  • deviceInfo: Base64 encoded Device Info. Refer Adobe Primetime docs for the device info spec
Get adobe prime time token
endPoint = "https://<host>"

FLPlatformCoreExtensions().getAdobePrimeTimeToken(endPoint, deviceId, deviceInfo, platformAuthorizer, callContext, sub(context, response, error)
if error <> invalid
' failure
else
' success
end if
end sub)

Adobe Primetime - FLAT Token V2

To generate a Quickplay Access Token (FLAT) for TVE flows via Adobe Primetime V2, use the below extension API by passing the following info:

  • deviceId: Unique device identifier. Refer to Secure Playback for generating a unique device id
  • deviceInfo: Base64 encoded Device Info. Refer Adobe Primetime docs for the device info spec
  • userId: Unique user identifier.
  • profileId: User profile indentifier.
Get adobe prime time token V2
endPoint = "https://<host>"

FLPlatformCoreExtensions().getAdobePrimeTimeTokenV2(endPoint, deviceId, deviceInfo, userId, profileId, platformAuthorizer, callContext, sub(context, response, error)
if error <> invalid
' failure
else
' success
end if
end sub)

Generic Platform API

All Quickplay Platform APIs are zero-trust protected and require OAuth token. The Platform Core client library manages the OAuth token and abstracts the ability to securely communicate with the Quickplay Platform. While many of the Platform APIs are exposed as direct APIs, some tenent specific APIs might not be available as direct API on the client library. In such cases, application could use the authorizeRequest API to communicate with the specific Platform API.

Create FLAuthorisedRequest

Create FLAuthorizedRequest from FLPlatformCore library.

Initiate an authorized request using the authorizeRequest APIs on the HTTPClient instance. This API allows initiating all standard HTTP requests and automatically injects the required Authentication headers to securely communicate with the Quickplay Platform.

Perform an authorized request on Quickplay platform
callContext = m
FLAuthorizedRequest(url, method, headers, parameters, platformAuthorizer).response(callContext, sub(context as object, response as object, error as object)
if error <> invalid
' failure
else
' success
end if
end sub)
note

Refer the Secure Playback section for creating platform authorizer instance.