Skip to content

BHughes3388/BAHVimeoOAuth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BAHVimeoOAuth

CI Status Version License Platform

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, BHughes3388@gmail.com

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published