Latest 0.1.0
Homepage https://github.com/jpaolantonio/Uber-iOS-SDK
License MIT
Platforms ios 8.0, requires ARC
Authors

CI Status
Version
License
Platform

An iOS SDK for the Uber API with a few goals.

  • Well-tested
  • Well-documented
  • Feature complete

Based of the endpoints listed here.

Usage

To get started started using Uber-iOS-SDK, you only need a few lines of code. Here is how you get a list of products.

[[UBUberAPI shared] setServerToken:@""]; //Set your token here.
[[UBUberAPI shared] getProductsFromLatitude:40.7127
                                  longitude:-74.0059
                                   response:^(NSArray *products, NSError *error) {

}];

To get details on a product

[[UBUberAPI shared] getProductWithId:productId
                            response:^(UBProduct *product, NSError *error) {

}];

There is also a sample project in the Example directory.

Docs are available on CocoaDocs.

Goals

This project currently includes the following.

  • Full model parity with website
    • Properties
    • Parsing
    • Tests
  • Sandbox and Production Testing
  • API Framework
  • API Endpoints
    • GET /v1/products
    • GET /v1/products/{product_id}

The following endpoints are missing

  • GET /v1/estimates/price
  • GET /v1/estimates/time
  • GET /v1/promotions
  • GET /v1.1/history
  • GET /v1/me
  • POST /v1/requests
  • GET /v1/requests/{request_id}
  • DELETE /v1/requests/{request_id}
  • GET /v1/requests/{request_id}/map

We are also missing OAuth sign in.

Installation

Uber-iOS-SDK is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "Uber-iOS-SDK"

Author

James Paolantonio, @jPaolantonio

Please let me know if you are using this. I would love to hear and help.

License

Uber-iOS-SDK is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Uber-iOS-SDK",
    "version": "0.1.0",
    "summary": "A well-tested and well documented SDK for Uber on iOS.",
    "description": "                        An iOS SDK for the Uber API with a few goals.nn                        * Well-testedn                        * Well-documentedn                        * Feature completenn                        Based of the endpoints listed https://developer.uber.com/v1/endpoints/n",
    "homepage": "https://github.com/jpaolantonio/Uber-iOS-SDK",
    "license": "MIT",
    "authors": {
        "James Paolantonio": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jpaolantonio/Uber-iOS-SDK.git",
        "tag": "0.1.0"
    },
    "social_media_url": "https://twitter.com/jpaolantonio",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "module_name": "UberSDK",
    "header_dir": "UberSDK",
    "source_files": "Pod/Classes/**/*",
    "public_header_files": "Pod/Classes/**/*.h"
}

Pin It on Pinterest

Share This