Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

iOS wrapper for Ordr.in API

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 Docs
Octocat-spinner-32 Extras
Octocat-spinner-32 Ordrin.xcworkspace
Octocat-spinner-32 Source
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 README.md
README.md

libOrdrin

Installation

The library is currently tested only in the mode where it's part of the workspace. So in case of other use than just in the default demo app it's necessary to add the library into the workspace.

  • Clone repository
  • Submodules
cd ./Ordrin
git submodule init
git submodule update
  • Run DemoApp ;-)

Usage

The main API documentation is to be found on the page for developers http://ordr.in/developers/api/order. In the attached DemoApp you can find basic usage of all the available methods. API is implemented supporting blocks and is very simple. See:

// List of restaurants
OIAddress *address = [OIAddress addressWithStreet:@"1 Main St"
                                             city:@"College Station"
                                       postalCode:[NSNumber numberWithInt:77840]];

// You can use [OIDateTime dateTime:[NSDate date] or [OIDateTime dateTimeASAP]

[OIRestaurant restaurantsNearAddress:address availableAt:[OIDateTime dateTime:[NSDate date]] usingBlock:^void(NSArray *restaurants) {
  // array of restaurants
}];
Something went wrong with that request. Please try again.