Skip to content

Commit

Permalink
Cleaned up the twitter_client module and finished the Twitter API imp…
Browse files Browse the repository at this point in the history
…lementation. Added a good chunk of documentation to both modules and cleaned up the README. Misc code changes here and there.
  • Loading branch information
ngerakines committed Jun 8, 2008
1 parent 7283900 commit 9b004bd
Show file tree
Hide file tree
Showing 3 changed files with 292 additions and 51 deletions.
18 changes: 1 addition & 17 deletions README
Expand Up @@ -2,20 +2,4 @@ erlang_twitter contains an Erlang twitter client. This code is still under activ

* twitter_client -- A twitter client and client manager. This module contains all of the required functions to send and parse twitter API requests. The functions provided can be called on their own or managed by the twitter_client gen_server.

1> inets:start().
2> twitter_client:start("myname", "pass").
3> twitter_client:account_verify_credentials("myname", "pass", []).
OR
4> twitter_client:call(myname, account_verify_credentials).
5> twitter_client:call(myname, user_timeline).
6> twitter_client:call(myname, status_update, [{"status", "Testing the erlang_twitter twitter_client.erl library."}]).
7> twitter_client:call(myname, user_timeline).

* twitterbot -- A module that provides the structure to create a twitter bot.

1> inets:start().
2> twitterbot:start("mybot", "mybotpassword").
3> gen_server:call(twitterbot:clean_name("mybot"), {info}).
4> gen_server:call(twitterbot:clean_name("mybot"), {start_dmloop}).
5> gen_server:call(twitterbot:clean_name("mybot"), {start_flwloop}).
6> gen_server:call(twitterbot:clean_name("mybot"), {followers}).
* twitterbot -- A module that provides the structure to create a twitter bot.

0 comments on commit 9b004bd

Please sign in to comment.