Skip to content

Commit

Permalink
Rename twitterl to twitter_interface, will now call our
Browse files Browse the repository at this point in the history
gen_server twitterl.
  • Loading branch information
baphled committed Dec 6, 2008
1 parent 1488ee1 commit 043794b
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions twitterl.erl → twitterl_interface.erl
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@
-define(SearchHashUrl, ?SearchUrl"/search.rss?q="). -define(SearchHashUrl, ?SearchUrl"/search.rss?q=").
-define(SearchTrendsUrl, ?SearchUrl"/trends.json"). -define(SearchTrendsUrl, ?SearchUrl"/trends.json").
-define(VerifyUrl, ?TwitUrl"/account/verify_credentials.xml"). -define(VerifyUrl, ?TwitUrl"/account/verify_credentials.xml").

start() ->
inets:start().

stop() ->
inets:stop().



%% Retrieve the top 10 trends, only available under JSON atm. %% Retrieve the top 10 trends, only available under JSON atm.
%% Seems to be a bug in the parsing, sometimes we get a mismatch %% Seems to be a bug in the parsing, sometimes we get a mismatch
Expand All @@ -71,8 +64,8 @@ trends() ->
false -> false ->
{ok,loop_json([],Result)}; {ok,loop_json([],Result)};
true -> true ->
%trends() trends()
{error,Result} %{error,Result}
end; end;
_ -> _ ->
{error,'Can not retrieve trends.'} {error,'Can not retrieve trends.'}
Expand Down

0 comments on commit 043794b

Please sign in to comment.