vimeo / VIMNetworking

The Vimeo iOS SDK
MIT License
58 stars 25 forks source link

General description error #174

Closed relatedcode closed 1 year ago

relatedcode commented 8 years ago

In your description

#import "VIMNetworking.h"

. . .

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 
{
    VIMSessionConfiguration *config = [[VIMSessionConfiguration alloc] init];
    config.clientKey = @"your_client_key";
    config.clientSecret = @"your_client_secret";
    config.scope = @"your_scope"; // E.g. "private public upload etc"
    config.keychainService = @"your_service"; 
    config.keychainAccessGroup = @"your_access_group"; // Optional

    [VIMSession sharedSession setupWithConfiguration:config];    

    if ([[VIMSession sharedSession].account isAuthenticated] == NO)
    {
        NSLog(@"Authenticate...");
    }
    else
    {
        NSLog(@"Already authenticated!");
    }

    . . .
}

the following row seems to be buggy:

[VIMSession sharedSession setupWithConfiguration:config];    

I suppose it wanted to be:

[VIMSession setupWithConfiguration:config];