Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
acceptuary committed May 30, 2012
1 parent c364c94 commit 55d2313
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Expand Up @@ -42,10 +42,10 @@ class RegularRequestExampleViewController < UIViewController
def driver

# use .instance to get ahold of the request god you initialized in your app delegate
@request_god = RequestGod.instance
request_god = RequestGod.instance

# use .RegularRequest to spawn a simple HTTP Get, Post, etc. Pass in the resource path, method, and callback delegate
login_request = @request_god.RegularRequest('/tokens.json', method:POST, delegate:self)
login_request = request_god.RegularRequest('/tokens.json', method:POST, delegate:self)

# optionally, you can add post/put parameters
login_request.params = { "email" => "n0x10s.gas@gmail.com", "password" => "password" }
Expand Down

0 comments on commit 55d2313

Please sign in to comment.