Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v1.1.0
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (27 sloc) 0.985 kb
An Erlang OAuth implementation.
Quick start (client usage):
$ make
...
$ erl -pa ebin -s crypto -s inets
...
1> Consumer = {"key", "secret", hmac_sha1}.
...
2> RequestTokenURL = "http://term.ie/oauth/example/request_token.php".
...
3> {ok, ResponseR} = oauth:get(RequestTokenURL, [], Consumer, "", "").
...
4> ParamsR = oauth_http:response_params(ResponseR).
...
5> TokenR = oauth:token(ParamsR).
...
6> TokenSecretR = oauth:token_secret(ParamsR).
...
7> AccessTokenURL = "http://term.ie/oauth/example/access_token.php".
...
8> {ok, ResponseA} = oauth:get(AccessTokenURL, [], Consumer, TokenR, TokenSecretR).
...
The percent encoding/decoding implementations are based on those found in
the ibrowse library, written by Chandrashekhar Mullaparthi.
Example client/server code is at http://github.com/tim/erlang-oauth-examples.
Unit tests are at http://github.com/tim/erlang-oauth-tests.
Erlang/OTP R14B or greater is required for RSA-SHA1.
Jump to Line
Something went wrong with that request. Please try again.