2011-08-13 14 views
1

ここで概説として、私は、のredditのAPIに従うことをしようとしています:カールを使用してRedditのポストAPI

https://github.com/reddit/reddit/wiki/API

ログは問題ではありません。私にクッキーを与える

curl -d user=user -d passwd=pass -c Cookie.txt http://www.reddit.com/api/login 

、 (私は)私のユーザmod-hashが入っています:

4029916%2C2010-04-30T22%3A51%3A52%2C1243925043100000000000000000000000000000 

次の投稿:

curl -d uh=4029916%2C2010-04-30T22%3A51%3A52%2C1243925043100000000000000000000000000000 -d sr=test -d title=test -d r=test -c Cookie.txt http://www.reddit.com/api/submit 

しかし、私はエラーを受信機:

[".error.USER_REQUIRED"] 

誰かが私が間違って/私はそれを修正することができますどのようにやっていることを説明できますか?

答えて

関連する問題