OOOoyalaAPIClient.h
1 
9 @import Foundation;
10 #import "OOSecureURLGenerator.h"
11 #import "OOCallbacks.h"
12 #import "OOPaginatedParentItem.h"
13 #import "OOEmbedTokenGenerator.h"
14 
15 @class OOPlayerAPIClient;
16 @class OOOoyalaAPIHelper;
17 @class OOContentItem;
18 @class OOOoyalaError;
19 @class OOPlayerDomain;
20 
26 @interface OOOoyalaAPIClient : NSObject
27 
34 - (instancetype)initWithPcode:(NSString *)pcode domain:(OOPlayerDomain *)domain;
35 
46 - (instancetype)initWithPcode:(NSString *)pcode
47  domain:(OOPlayerDomain *)domain
48  embedTokenGenerator:(id<OOEmbedTokenGenerator>)generator;
49 
60 - (instancetype)initWithPcode:(NSString *)pcode
61  domain:(OOPlayerDomain *)domain
62  secureUrlGenerator:(id<OOSecureURLGenerator>)secureURLGenerator;
63 
64 
77 - (instancetype)initWithAPIKey:(NSString *)apiKey
78  secret:(NSString *)secret
79  pcode:(NSString *)pcode
80  domain:(OOPlayerDomain *)domain;
81 
96 - (instancetype)initWithAPIKey:(NSString *)apiKey
97  secret:(NSString *)secret
98  pcode:(NSString *)pcode
99  domain:(OOPlayerDomain *)domain
100  embedTokenGenerator:(id<OOEmbedTokenGenerator>)generator;
101 
114 - (instancetype)initWithPcode:(NSString *)pcode
115  domain:(OOPlayerDomain *)domain
116  embedTokenGenerator:(id<OOEmbedTokenGenerator>)generator
117  secureUrlGenerator:(id<OOSecureURLGenerator>)secureURLGenerator;
118 
119 
126 - (instancetype)initWithPlayerAPIClient:(OOPlayerAPIClient *)playerAPI
127  secureUrlGenerator:(id<OOSecureURLGenerator>)secureURLGenerator;
128 
134 - (instancetype)initWithPlayerAPIClient:(OOPlayerAPIClient *)thePlayerAPIClient;
135 
141 - (void)contentTree:(NSArray *)embedCodes
142  callback:(OOContentTreeCallback)callback;
143 
150 - (void)contentTree:(NSArray *)embedCodes
151  adSetCode:(NSString *)adSetCode
152  callback:(OOContentTreeCallback)callback;
153 
160 - (void)contentTreeByExternalIds:(NSArray *)externalIds
161  callback:(OOContentTreeCallback)callback;
162 
169 - (void)contentTreeNext:(id<OOPaginatedParentItem>)parent
170  callback:(OOContentTreeNextCallback)callback;
171 
178 - (void)objectFromBacklotAPI:(NSString *)uri
179  params:(NSDictionary *)params
180  withCallback:(OOObjectFromBacklotAPICallback)callback;
181 
186 - (NSString *)pcode;
187 
192 - (OOPlayerDomain *)domain;
193 
194 + (NSString *)messageForAuthCode:(int)code;
195 
196 @end
Represents the domain under which Ooyala analytics will be recorded.
Definition: OOPlayerDomain.h:7
NSString * pcode()
Represents an error in the Ooyala SDK.
Definition: OOOoyalaError.h:56
A single playable content item, such as video.
Definition: OOContentItem.h:20
Definition: OOPaginatedParentItem.h:7
Ooyala API client implementation.
Definition: OOOoyalaAPIClient.h:26