From e922314ea2ed9bcfb4ff1722656030f7e10949aa Mon Sep 17 00:00:00 2001 From: John Nunemaker Date: Sat, 22 Aug 2009 10:25:14 -0400 Subject: [PATCH] Updated website to point to github issues instead of lighthouse. --- website/index.html | 71 +++++++++++++++++++++++----------------------- 1 file changed, 35 insertions(+), 36 deletions(-) diff --git a/website/index.html b/website/index.html index 79ce7b7..3b4c86f 100644 --- a/website/index.html +++ b/website/index.html @@ -1,32 +1,31 @@ - - HTTParty by John Nunemaker - + + HTTParty by John Nunemaker +
- - -
-

Install

-
$ sudo gem install httparty
- -

Some Quick Examples

- -

The following is a simple example of wrapping Twitter's API for posting updates.

+ + +
+

Install

+
$ sudo gem install httparty
+ +

Some Quick Examples

+ +

The following is a simple example of wrapping Twitter's API for posting updates.

class Twitter
   include HTTParty
@@ -36,9 +35,9 @@ end
 
 Twitter.post('/statuses/update.json', :query => {:status => "It's an HTTParty and everyone is invited!"})
-

That is really it! The object returned is a ruby hash that is decoded from Twitter's json response. JSON parsing is used because of the .json extension in the path of the request. You can also explicitly set a format (see the examples).

+

That is really it! The object returned is a ruby hash that is decoded from Twitter's json response. JSON parsing is used because of the .json extension in the path of the request. You can also explicitly set a format (see the examples).

-

That works and all but what if you don't want to embed your username and password in the class? Below is an example to fix that:

+

That works and all but what if you don't want to embed your username and password in the class? Below is an example to fix that:

class Twitter
   include HTTParty
@@ -55,19 +54,19 @@ Twitter.post('/statuses/update.json', :query => {:status => "It's an HTTParty an
 end
 
 Twitter.new('username', 'password').post("It's an HTTParty and everyone is invited!")
- -

More Examples: There are several examples in the gem itself.

- -

Support

-

Conversations welcome in the google group and bugs/features over at Lightouse.

- - -
+ +

More Examples: There are several examples in the gem itself.

+ +

Support

+

Conversations welcome in the google group and bugs/features over at Github.

+ + +
- +