BAHVimeoOAuth
Preview
Usage
To run the example project, clone the repo, and run pod install
from the Example directory first.
Installation
BAHVimeoOAuth is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "BAHVimeoOAuth"
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.