Skip to content

Private video returning nil #202

@rodrigodeplcampos

Description

@rodrigodeplcampos

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions