mirror https://github.com/tim/erlang-oauth

Tim Fletcher 09857076a1 Use the public_key API; not the helper modules. 16 years ago
src 09857076a1 Use the public_key API; not the helper modules. 16 years ago
Emakefile 8201f7b14e Use correct capitalization for Emakefile. 16 years ago
License.txt b59f5ad7ed Update copyright date. 16 years ago
Makefile 625471c199 Simplify the Makefile. 16 years ago
README.txt 41ead739b7 Fix README quick start prompt numbering. 16 years ago

README.txt

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


Example client/server code: http://github.com/tim/erlang-oauth-examples.

Unit tests: http://github.com/tim/erlang-oauth-tests.

Erlang R12B-5 required for RSA-SHA1.