README.txt 922 B

123456789101112131415161718192021222324252627282930313233
  1. An Erlang OAuth implementation.
  2. Quick start (client usage):
  3. $ make
  4. ...
  5. $ erl -pa ebin -s crypto -s inets
  6. ...
  7. 1> Consumer = {"key", "secret", hmac_sha1}.
  8. ...
  9. 2> RequestTokenURL = "http://term.ie/oauth/example/request_token.php".
  10. ...
  11. 3> {ok, ResponseR} = oauth:get(RequestTokenURL, [], Consumer, "", "").
  12. ...
  13. 4> ParamsR = oauth_http:response_params(ResponseR).
  14. ...
  15. 5> TokenR = oauth:token(ParamsR).
  16. ...
  17. 6> TokenSecretR = oauth:token_secret(ParamsR).
  18. ...
  19. 7> AccessTokenURL = "http://term.ie/oauth/example/access_token.php".
  20. ...
  21. 8> {ok, ResponseA} = oauth:get(AccessTokenURL, [], Consumer, TokenR, TokenSecretR).
  22. ...
  23. Thanks to Jason Davies, Paul Bonser, and Roberto Aloi for their patches.
  24. Example client/server code is at http://github.com/tim/erlang-oauth-examples.
  25. Unit tests are at http://github.com/tim/erlang-oauth-tests.
  26. Erlang R12B-5 or greater is required for RSA-SHA1.