Ooyala API client implementation.
More...
#import "OOOoyalaAPIClient.h"
Ooyala API client implementation.
OOOoyalaAPIClient.
Used internally by the OOOoyalaPlayer to load content information and metadata. Can be used by the customer app to query Backlot APIs
OOOoyalaAPIClient.h in OoyalaSDK
- (void) contentTree: |
|
(NSArray *) |
embedCodes |
adSetCode: |
|
(NSString *) |
adSetCode |
callback: |
|
(OOContentTreeCallback) |
callback |
|
|
| |
Asynchronously fetch the content tree for a set of embed codes, with the specified ad set.
- Parameters
-
[in] | embedCodes | an NSArray containing the embed codes to fetch the content tree for |
[in] | adSetCode | (possibly nil) an NSString containing the ad set code for the ad set to dynamically assign |
[in] | callback | the OOContentTreeCallback to execute when the asynchronous fetch completes |
- (void) contentTree: |
|
(NSArray *) |
embedCodes |
callback: |
|
(OOContentTreeCallback) |
callback |
|
|
| |
Asynchronously fetch the content tree for a set of embed codes.
- Parameters
-
[in] | embedCodes | an NSArray containing the embed codes to fetch the content tree for |
[in] | callback | the OOContentTreeCallback to execute when the asynchronous fetch completes |
- (void) contentTreeByExternalIds: |
|
(NSArray *) |
externalIds |
callback: |
|
(OOContentTreeCallback) |
callback |
|
|
| |
Asynchronously fetch the content tree for a set of external ids.
- Note
- : The external ids will not be in the resulting OOContentItem tree. All ContentItems are keyed based on embed code.
- Parameters
-
[in] | externalIds | an NSArray containing the external ids to fetch the content tree for |
[in] | callback | the OOContentTreeCallback to execute when the asynchronous fetch completes |
- (void) contentTreeNext: |
|
(id< OOPaginatedParentItem >) |
parent |
callback: |
|
(OOContentTreeNextCallback) |
callback |
|
|
| |
- (instancetype) initWithAPIKey: |
|
(NSString *) |
apiKey |
secret: |
|
(NSString *) |
secret |
pcode: |
|
(NSString *) |
pcode |
domain: |
|
(OOPlayerDomain *) |
domain |
|
|
| |
Initialize an OOOoyalaAPIClient with pcode, embed domain, API key and secret.
Allows accessing protected Backlot APIs. Use initWithPcode:domain:secureUrlGenerator: if you don't want to embed API keys in the app.
- Parameters
-
[in] | apiKey | the API Key to use (from Backlot) |
[in] | secret | the Secret to use (from Backlot) |
[in] | pcode | the Partner Code to use (from Backlot) |
[in] | domain | the embed domain |
- Returns
- the initialized OOOoyalaAPIClient
- (instancetype) initWithAPIKey: |
|
(NSString *) |
apiKey |
secret: |
|
(NSString *) |
secret |
pcode: |
|
(NSString *) |
pcode |
domain: |
|
(OOPlayerDomain *) |
domain |
embedTokenGenerator: |
|
(id< OOEmbedTokenGenerator >) |
generator |
|
|
| |
Initialize an OOOoyalaAPIClient with pcode, embed domain, API key and secret and OOEmbedTokenGenerator.
Allows accessing content that is protected by Ooyala Player Tokens. Allows accessing protected Backlot APIs. Use initWithPcode:domain:embedTokenGenerator:secureUrlGenerator: if you don't want to embed API keys in the app.
- Parameters
-
[in] | apiKey | the API Key to use (from Backlot) |
[in] | secret | the Secret to use (from Backlot) |
[in] | pcode | the Partner Code to use (from Backlot) |
[in] | domain | the embed domain |
[in] | generator | the initialized OOEmbedTokenGenerator to use |
- Returns
- the initialized OOOoyalaAPIClient
- (instancetype) initWithPcode: |
|
(NSString *) |
pcode |
domain: |
|
(OOPlayerDomain *) |
domain |
|
|
| |
Initialize an OOOoyalaAPIClient with pcode and embed domain.
- Parameters
-
[in] | pcode | the Partner Code to use (from Backlot) |
[in] | domain | the embed domain |
- Returns
- the initialized OOOoyalaAPIClient
- (instancetype) initWithPcode: |
|
(NSString *) |
pcode |
domain: |
|
(OOPlayerDomain *) |
domain |
embedTokenGenerator: |
|
(id< OOEmbedTokenGenerator >) |
generator |
|
|
| |
Initialize an OOOoyalaAPIClient with pcode, embed domain and OOEmbedTokenGenerator.
Allows accessing content that is protected by Ooyala Player Tokens.
- Parameters
-
[in] | pcode | the Partner Code to use (from Backlot) |
[in] | domain | the embed domain |
[in] | generator | OOEmbedTokenGenerator for creating Ooyala Player Tokens |
- Returns
- the initialized OOOoyalaAPIClient
- (instancetype) initWithPcode: |
|
(NSString *) |
pcode |
domain: |
|
(OOPlayerDomain *) |
domain |
embedTokenGenerator: |
|
(id< OOEmbedTokenGenerator >) |
generator |
secureUrlGenerator: |
|
(id< OOSecureURLGenerator >) |
secureURLGenerator |
|
|
| |
Initialize an OOOoyalaAPIClient with pcode, embed domain, OOEmbedTokenGenerator and OOSecureURLGenerator.
Allows accessing content that is protected by Ooyala Player Tokens. Allows accessing protected Backlot APIs.
- Parameters
-
[in] | pcode | the Partner Code to use (from Backlot) |
[in] | domain | the embed domain |
[in] | generator | the initialized OOEmbedTokenGenerator to use |
[in] | secureURLGenerator | an initialized instance of OOSecureURLGenerator used for signing Backlot requests |
- Returns
- the initialized OOOoyalaAPIClient
- (instancetype) initWithPcode: |
|
(NSString *) |
pcode |
domain: |
|
(OOPlayerDomain *) |
domain |
secureUrlGenerator: |
|
(id< OOSecureURLGenerator >) |
secureURLGenerator |
|
|
| |
- (instancetype) initWithPlayerAPIClient: |
|
(OOPlayerAPIClient *) |
thePlayerAPIClient |
|
- (instancetype) initWithPlayerAPIClient: |
|
(OOPlayerAPIClient *) |
playerAPI |
secureUrlGenerator: |
|
(id< OOSecureURLGenerator >) |
secureURLGenerator |
|
|
| |
+ (NSString *) messageForAuthCode: |
|
(int) |
code |
|
- (void) objectFromBacklotAPI: |
|
(NSString *) |
uri |
params: |
|
(NSDictionary *) |
params |
withCallback: |
|
(OOObjectFromBacklotAPICallback) |
callback |
|
|
| |
Asynchronously fetch a raw NSDictionary/NSArray from any backlot API (GET requests only)
- Parameters
-
[in] | uri | the URI to be fetched from backlot not including "/v2". For example, to request https://api.ooyala.com/v2/assets, uri should be "/assets" |
[in] | params | Additional params that the API may require in the form of dictionary. |
[in] | callback | the OOObjectFromBacklotAPICallback to execute when the asynchronous fetch completes |
The documentation for this class was generated from the following file: