forked from ehrenmurdick/gnap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ehren Murdick
committed
Apr 27, 2009
1 parent
5cb859a
commit f90aab2
Showing
2 changed files
with
20 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
h1. Gnap | ||
|
||
<span style="position:relative; top: -28px; left: 13px;">_"nap"_</span> | ||
|
||
Gnap is an interface to Gnip's api. It has not been written yet. The following code is how I hope to make it work, and is subject to change. | ||
|
||
<pre> | ||
<code> | ||
gnap = Gnap.new("username", "password") | ||
|
||
# current activity for twitter | ||
gnap.publisher("twitter").activity | ||
|
||
# last five minutes | ||
gnap.publisher("twitter").activity(5.minutes.ago..Time.now) | ||
|
||
# last hour | ||
gnap.publisher("twitter").activity(1.hour.ago..Time.now) | ||
</code> | ||
</pre> |