Because upstream disappeared (Thanks Benoit!)
  • Erlang 99.1%
  • Makefile 0.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2011-01-01 12:48:11 +01:00
src update oauth to latest version 2011-01-01 12:48:11 +01:00
Emakefile Move compile options to Emakefile; simplify Makefile. 2009-09-26 15:04:01 +01:00
License.txt Update copyright date. 2009-01-13 14:20:10 +00:00
Makefile fix make .. 2010-10-09 01:34:14 +02:00
README.txt Mention that percent encoding/decoding functions are based on those in ibrowse. 2009-10-06 18:35:23 +01:00

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).
  ...


Thanks to Jason Davies, Paul Bonser, and Roberto Aloi for their patches.

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 R12B-5 or greater is required for RSA-SHA1.