Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: f832fa49ff
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (16 sloc) 0.532 kB
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"}]).
...
Jump to Line
Something went wrong with that request. Please try again.