To run the example project, clone the repo, and run pod install
from the Example directory first.
BAHVimeoOAuth is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "BAHVimeoOAuth"
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];
}
}];
BHughes3388, BHughes3388@gmail.com
BAHVimeoOAuth is available under the MIT license. See the LICENSE file for more info.