Permalink
Browse files

General cleanup in interface, actually named show status show, as

named it incorrectly previously.
  • Loading branch information...
1 parent 029afd8 commit 88dd8c74e3fb47e7142f738a59a1a70a0285d885 @baphled committed Dec 10, 2008
Showing with 7 additions and 2 deletions.
  1. +6 −1 twitterl.erl
  2. +1 −1 twitterl_interface.erl
View
@@ -15,6 +15,11 @@
%% Wrapper methods, exposed to show commands useable with call
-export([find_trends/3,find_tweets/3,find_term/3]).
-export([tweet_timeline/3,my_timeline/3]).
+
+%Status based methods
+-export([status_show/3]).
+
+%User based methods
-export([user_followers/3,user_friends/3,user_timeline/3,public_timeline/3]).
%-compile(export_all).
%% gen_server callbacks
@@ -131,4 +136,4 @@ user_timeline(Login, Password, _Args) ->
public_timeline(Login, Password, _Args) ->
twitterl_interface:handle_status(public_timeline, Login, Password, nil).
status_show(Login, Password, Args) ->
- twitterl_interface:handle_status(user_show, Login, Password, Args).
+ twitterl_interface:handle_status(status_show, Login, Password, Args).
View
@@ -175,7 +175,7 @@ handle_status(Type,User,Pass,Args) ->
get_status("user_timeline.xml",User,Pass);
public_timeline ->
get_status("public_timeline.xml",User,Pass);
- user_show ->
+ status_show ->
case is_list(Args) of
true -> get_status("show.xml?id="++Args, User,Pass);
_ -> {error, {Type, Args}}

0 comments on commit 88dd8c7

Please sign in to comment.