summaryrefslogtreecommitdiff
path: root/apps/oauth/src/oauth_http.erl
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-10-26 13:47:23 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-10-26 13:47:23 -0400
commitaf10842462fcd6e878717058c87f99667c8d516c (patch)
tree545d1beda3438e02a853c3b17e1a6dd9c9078fc7 /apps/oauth/src/oauth_http.erl
parent67865c8a5a400e039d41d6cb2759adb43a78e350 (diff)
use get-deps for oauth
same deal as before - the Cloudant fork contains CouchDB-specific patches and rebar fixes.
Diffstat (limited to 'apps/oauth/src/oauth_http.erl')
-rw-r--r--apps/oauth/src/oauth_http.erl22
1 files changed, 0 insertions, 22 deletions
diff --git a/apps/oauth/src/oauth_http.erl b/apps/oauth/src/oauth_http.erl
deleted file mode 100644
index bf5a4bac..00000000
--- a/apps/oauth/src/oauth_http.erl
+++ /dev/null
@@ -1,22 +0,0 @@
--module(oauth_http).
-
--export([get/1, post/2, response_params/1, response_body/1, response_code/1]).
-
-
-get(URL) ->
- request(get, {URL, []}).
-
-post(URL, Data) ->
- request(post, {URL, [], "application/x-www-form-urlencoded", Data}).
-
-request(Method, Request) ->
- http:request(Method, Request, [{autoredirect, false}], []).
-
-response_params(Response) ->
- oauth_uri:params_from_string(response_body(Response)).
-
-response_body({{_, _, _}, _, Body}) ->
- Body.
-
-response_code({{_, Code, _}, _, _}) ->
- Code.