Skip to content

snaheth/ios-postmates

 
 

Repository files navigation

iOS Objective-C Postmates Library

An Objective-C wrapper for Postmates REST API that gives iOS developers easier access to Postmates' on demand services within their mobile applications.

Getting Started

CocoaPods

Add the following line to your Podfile:

pod 'PostmatesiOS', '~> 0.0.1'

Add the following lines to your bridge file if you plan to use the framework with Swift:

#import "PostmatesiOS/Postmates.h"
#import "PostmatesiOS/Delivery.h"
#import "PostmatesiOS/DeliveryQuote.h"
#import "PostmatesiOS/Location.h"
#import "PostmatesiOS/APIManager.h"

Then, add this line in your class/classes to use the framework: import PostmatesiOS

Add PostmatesiOS to your app

In your AppDelegate.m file and under application:didFinishLaunchingWithOptions: add this line:

[Postmates setCustomerId:@"YOUR-CUSTOMER-ID" apiKey:@"YOUR-API-KEY"];

About

Postmates iOS API Wrapper

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Objective-C 79.9%
  • Ruby 20.1%