Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding the simplified GET requests for the tumblr api and an Updated …
…readme.
- Loading branch information
1 parent
332610b
commit f55df7a
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
A Ruby client for restful interaction with Tumblr | ||
|
||
This isn't ready for primetime but if you'd like to contribute send me a pull. | ||
|
||
Design of the gem is borrowed heavily from: https://github.com/moomerman/twitter_oauth | ||
|
||
He's awesome. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module TumblrOAuth | ||
#Allow for different blogs | ||
def queued_posts | ||
get("/posts/queue") | ||
end | ||
def draft_posts | ||
get("/posts/draf") | ||
end | ||
|
||
def posts(options={}) | ||
#accept those optional parameters | ||
get("/posts") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module TumblrOAuth | ||
def followers | ||
return get("/followers") | ||
end | ||
def likes | ||
return get("/user/likes") | ||
end | ||
def following | ||
return get("/user/following") | ||
end | ||
end |