public
Description: Example client/server code for erlang-oauth
Homepage:
Clone URL: git://github.com/tim/erlang-oauth-examples.git
name age message
file Emakefile Sat Sep 26 06:13:16 -0700 2009 Move compile options to Emakefile; simplify Mak... [tim]
file License.txt Tue Jan 13 06:40:42 -0800 2009 Add license. [tim]
file Makefile Sat Sep 26 06:13:16 -0700 2009 Move compile options to Emakefile; simplify Mak... [tim]
file README.txt Sat Sep 26 07:00:17 -0700 2009 Update README. [tim]
directory data/ Wed Feb 25 12:05:58 -0800 2009 Update to latest erlang-oauth usage; add RSA-SH... [tim]
directory src/ Sat Sep 26 06:56:15 -0700 2009 Code formatting consistency. [tim]
README.txt
Example client/server code for erlang-oauth (http://github.com/tim/erlang-oauth).

To run the MochiWeb server/client:

  $ make
  ...
  $ erl -pa ebin -pa path/to/erlang-oauth/ebin -pa path/to/mochiweb/ebin -s crypto -s inets
  ...
  1> oauth_mochiweb:start().
  ...
  2> {ok, Client} = oauth_mochiweb_client:start().
  ...
  3> {ok, _Token} = oauth_mochiweb_client:get_request_token(Client).
  ...
  4> ok = oauth_mochiweb_client:get_access_token(Client).
  ...
  5> oauth_mochiweb_client:echo(Client, [{"hello", "world"}]).
  ...