CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

BAHVimeoOAuth 0.1.1

BAHVimeoOAuth 0.1.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2015

Maintained by Brad Hughes.




  • By
  • BHughes3388

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Preview

Installation

Setup

Import

#import "BAHVimeoOAuth.h"

Where ever you would like your user to login to vimeo and retrieve a token

BAHVimeoOAuth *vimeoOAuth = [[BAHVimeoOAuth alloc]init];

[vimeoOAuth authenticateWithVimeoUsingVimeoClientID:vimeoClientID
                           vimeoAuthorizationHeader:vimeoAuthorizationHeader
                                              scope:nil
                                              state:state
                                    appURLCallBack:appURLCallBack
                                    viewController:self
                                                  :^(BOOL success, NSString *vimeoToken) {

                                                    if (success) {

                                                        //Optional saving the returned token to NSUserDefaults
                                                        [[NSUserDefaults standardUserDefaults] setObject:vimeoToken forKey:@"vimeo_token"];
                                                        [[NSUserDefaults standardUserDefaults] synchronize];

                                                        //Do what ever you need to do with the returned token
                                                        //[self requestVideosFromVimeo];

                                                        }

                                                    }];

Author

BHughes3388, [email protected]

License

BAHVimeoOAuth is available under the MIT license. See the LICENSE file for more info.