Example client/server code for erlang-oauth
Erlang
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
src
Emakefile
License.txt
Makefile
README.md

README.md

Example client/server code for 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"}]).
...