-
Notifications
You must be signed in to change notification settings - Fork 25
Description
I'm trying to use the iOS native library to access my private video but is returning nil. I have a PRO account and i'm using this code:
VIMSessionConfiguration *config = [[VIMSessionConfiguration alloc] init];
config.clientKey = VIMEO_CLIENT_ID;
config.clientSecret = VIMEO_CLIENT_SECRET;
config.scope = VIMEO_SCOPE;
config.keychainService = @"your_service";
[VIMSession setupWithConfiguration:config];
[[VIMSession sharedSession] authenticateWithClientCredentialsGrant:^(NSError *error) {
if (error == nil)
{
NSLog(@"Success!");
[[VIMSession sharedSession].client requestURI:@"/videos/MY_PRIVATE_VIDEO_ID" completionBlock:^(VIMServerResponse *response, NSError *error) {
id JSONObject = response.result;
NSLog(@"JSONObject: %@", JSONObject);
}];
}
else
{
NSLog(@"Failure: %@", error);
}