Latest 1.1.0
Homepage https://github.com/tflack/tesla-api-objectivec
License BSD
Platforms ios 6.0, osx 10.8, requires ARC
Dependencies AFNetworking
Authors

tesla-api-objectivec

ObjectiveC Wrapper For Tesla APIs

Install using cocoapods

Include the following in your Podfile

pod ‘TeslaApiObjectiveCWrapper’

In Your Project

import "TeslaApi.h"

in ViewDidLoad (or wherever you want to use it)

TeslaApi *tApi = [[TeslaApi alloc]initWithUserName:@"YOUREMAIL" andPassword:@"YOURPASSWORD"];

[tApi listVehiclesWithCompletionBlock:^(NSArray *vehicles) {
        NSLog(@"VEHICLE: %@",vehicles);
    } andErrorBlock:^(NSError *error) {
        NSLog(@"ERROR: %@",error);
    }];

Download the example project for exact usage

Latest podspec

{
    "name": "TeslaApiObjectiveCWrapper",
    "version": "1.1.0",
    "summary": "Objective-C Wrapper For Tesla Model S APIs",
    "homepage": "https://github.com/tflack/tesla-api-objectivec",
    "license": "BSD",
    "authors": {
        "Tim Flack": "[email protected]ynomite.com"
    },
    "source": {
        "git": "https://github.com/tflack/tesla-api-objectivec.git",
        "tag": "v1.1.0"
    },
    "source_files": "teslaapitest/TeslaApi.{h,m}",
    "requires_arc": true,
    "dependencies": {
        "AFNetworking": [
            "~> 2"
        ]
    },
    "platforms": {
        "ios": "6.0",
        "osx": "10.8"
    }
}

Pin It on Pinterest

Share This