一个 Uber API 的 iOS SDK,具有几个目标。
要开始使用 Uber-iOS-SDK,您只需要几行代码。以下是获取产品列表的方法。
[[UBUberAPI shared] setServerToken:@""]; //Set your token here.
[[UBUberAPI shared] getProductsFromLatitude:40.7127
longitude:-74.0059
response:^(NSArray *products, NSError *error) {
}];
获取产品详情
[[UBUberAPI shared] getProductWithId:productId response:^(UBProduct *product, NSError *error) {
}];
示例项目也位于 Example
目录中。
该项目目前包括以下内容。
以下端点缺失
我们还缺少 OAuth 登录。
Uber-iOS-SDK 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中
pod "Uber-iOS-SDK"
James Paolantonio, @jPaolantonio
请告诉我您是否在使用它。我希望了解并帮助。
Uber-iOS-SDK 可在 MIT 许可下使用。有关更多信息,请参阅 LICENSE 文件。