@@ -1,11 +1,6 @@
-module(oauth).
--export([get/2]).
--export([get/3]).
--export([get/4]).
--export([post/2]).
--export([post/3]).
--export([post/4]).
+-export([get/2, get/3, get/4, post/2, post/3, post/4]).
get(URL, Consumer) ->
@@ -1,6 +1,6 @@
-module(oauth_consumer).
--compile(export_all).
+-export([key/1, new/3, secret/1, signature_method/1]).
new(Key, Secret, SignatureMethod) ->
@@ -1,10 +1,6 @@
-module(oauth_hmac).
--export([signature/3]).
-
-% for testing:
--export([base_string/3]).
--export([normalize/1]).
+-export([base_string/3, normalize/1, signature/3]).
signature({Method, URL, Params}, ConsumerSecret, TokenSecret) ->
@@ -1,7 +1,6 @@
-module(oauth_http).
--export([get/1]).
+-export([get/1, post/2]).
get(URL) ->
@@ -1,8 +1,6 @@
-module(oauth_params).
--export([to_string/1]).
--export([to_header_string/1]).
--export([from_string/1]).
+-export([from_string/1, to_string/1, to_header_string/1]).
-import(lists, [map/2]).
-module(oauth_request).
--export([params_string/5]).
--export([url/5]).
--export([header/6]).
+-export([header/6, params_string/5, url/5]).
params_string(Method, URL, ExtraParams, Consumer, TokenPair) ->
-module(oauth_token_pair).
--export([new/2]).
--export([new/1]).
+-export([new/1, new/2]).
new(Token, TokenSecret) ->