我正在尝试遵循reddit api,如下所示:
https://github.com/reddit/reddit/wiki/API
使用curl登录不是问题:
curl -d user=user -d passwd=pass -c Cookie.txt http://www.reddit.com/api/login 这给了我一个cookie,其中(我假设)包含我的用户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"]有没有人能解释一下我做错了什么/我该如何修复它?
发布于 2011-08-14 02:18:57
看这里:https://github.com/reddit/reddit/wiki/API%3A-login
请注意,cookie与modhash不是一回事。
https://stackoverflow.com/questions/7048246
复制相似问题