Permalink
Browse files

Markdown README

  • Loading branch information...
1 parent 8a0545c commit 607348c7bcb5cb2b03ada103bb6c89d3c8548655 @tim committed Aug 3, 2013
Showing with 18 additions and 18 deletions.
  1. +18 −0 README.md
  2. +0 −18 README.txt
View
@@ -0,0 +1,18 @@
+Example client/server code for [erlang-oauth](https://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"}]).
+ ...
View
@@ -1,18 +0,0 @@
-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"}]).
- ...

0 comments on commit 607348c

Please sign in to comment.