CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Apr 2015 |
Maintained by Brad Hughes.
To run the example project, clone the repo, and run pod install from the Example directory first.
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, [email protected]
BAHVimeoOAuth is available under the MIT license. See the LICENSE file for more info.