Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Examples
Pods
VinliSDK.xcodeproj
VinliSDK.xcworkspace
VinliSDK
VinliSDKTests Added ability for us to pass in an Event Type while querying event-se… Feb 8, 2017
bin
docs
.gitignore
CONTRIBUTING.md
LICENSE
Podfile
Podfile.lock
README.md Update README.md Jul 13, 2017
VinliNet.podspec
circle.yml update circle.yml with new envars Jan 9, 2017

README.md

Vinli Net SDK

A framework for accessing Vinli services.

Documentation

http://cocoadocs.org/docsets/VinliNet

Installation

Install With CocoaPods

pod 'VinliNet'

Install manually, go to your project's General tab and add the VinliSDK.framework file as an Embedded Binary

OAuth Tutorial

Example project that implements Vinli Auth http://bit.ly/vl-ios-auth

Usage

Create a VLLoginViewController object and assign it your Client ID and Redirect URI.

VLLoginViewController *viewController = [[VLLoginViewController alloc] init];
viewController.clientId = @"96e9f8e4-0cqq-4528-9040-956e9edz446a";
viewController.redirectUri = @"myApp://";
viewController.delegate = self;

Then present the view controller. The VLLoginViewController will dismiss itself and call the function below once the user has authenticated:

- (void) vlLoginViewController:(VLLoginViewController *)loginController didLoginWithSession:(VLSession *)session

Once the user has a valid VLSession, create a VLService:

VLService *vlService = [[VLService alloc] init];
[vlService useSession:session];

Use VLService to interact with the Vinli services:

[vlService getDevicesOnSuccess:^(VLDevicePager *devicePager, NSHTTPURLResponse *response) {

    } onFailure:^(NSError *error, NSHTTPURLResponse *response, NSString *bodyString) {
        
    }];
You can’t perform that action at this time.