Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tflack/tesla-api-objectivec
ObjectiveC Wrapper For Tesla APIs
https://github.com/tflack/tesla-api-objectivec
Last synced: 3 months ago
JSON representation
ObjectiveC Wrapper For Tesla APIs
- Host: GitHub
- URL: https://github.com/tflack/tesla-api-objectivec
- Owner: tflack
- License: mit
- Created: 2014-05-05T17:11:37.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-14T16:41:38.000Z (over 10 years ago)
- Last Synced: 2024-07-18T10:36:40.027Z (4 months ago)
- Language: Objective-C
- Size: 223 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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