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

Tim Fletcher fc5f528cea Combine modules and refactor 14 лет назад
ebin 18cee77847 Bump version to 1.1.1. 14 лет назад
src fc5f528cea Combine modules and refactor 14 лет назад
Emakefile be1aa9646d Move compile options to Emakefile; simplify Makefile. 15 лет назад
License.txt dcbf2273d9 Update copyright date. 14 лет назад
Makefile 24a39a2700 Move .app file to ebin; update Makefile. 14 лет назад
README.txt 3bea612662 Bump version to 1.1.0; at least R14B now required for RSA-SHA1. 14 лет назад
THANKS.txt 09fa180b1c Add THANKS. 14 лет назад

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


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.