2 Star 0 Fork 0

mirrors_arnaudsj/erlang-oauth

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
README.txt 898 Bytes
一键复制 编辑 原始数据 按行查看 历史
Tim Fletcher 提交于 2009-01-13 14:26 . Update README.
An Erlang OAuth implementation.
Quick start (client usage):
$ make
...
$ erl -pa ebin -s crypto -s inets
Erlang (BEAM) emulator version 5.6.5 [source] [smp:2] [async-threads:0] [kernel-poll:false]
Eshell V5.6.5 (abort with ^G)
1> Consumer = {"key", "secret", hmac_sha1}.
...
2> RequestTokenURL = "http://term.ie/oauth/example/request_token.php".
...
3> {ok, ResponseR} = oauth:get(RequestTokenURL, [], Consumer, "", "").
...
4> ParamsR = oauth_http:response_params(ResponseR).
...
5> TokenR = oauth:token(ParamsR).
...
6> TokenSecretR = oauth:token_secret(ParamsR).
...
7> AccessTokenURL = "http://term.ie/oauth/example/access_token.php".
...
6> {ok, ResponseA} = oauth:get(AccessTokenURL, [], Consumer, TokenR, TokenSecretR).
...
Erlang R12B-5 is required for generating RSA-SHA1 signatures.
RSA-SHA1 signature verification is not yet implemented.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_arnaudsj/erlang-oauth.git
git@gitee.com:mirrors_arnaudsj/erlang-oauth.git
mirrors_arnaudsj
erlang-oauth
erlang-oauth
master

搜索帮助