我有以下红宝石脚本:
puts "Checkpoint 1"
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
Twitter.configure do |config|
config.consumer_key = 'xxxxxxxxxxxxxx'
config.consumer_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
config.oauth_token = 'xxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
config.oauth_token_secret = 'xxxxxxxxxxxxxxxxxxxxxxx'
end
Twitter.verify_credentials
puts "Checkpoint 2"
Twitter.update("It is a Myth That Entrepreneurs Drive New Technology http://www.slate.com/articles/health_and_science/new_scientist/2013/09/entrepreneurs_or_the_state_innovation_comes_from_public_investment.html")
puts "Checkpoint 3"
它到达检查点 2 但未到达检查点 3,并给出以下错误:
只读应用程序无法 POST
但这不是真的,因为当我去 dev.twitter.com 并检查我的应用程序的首选项时,它会说:
访问级别 读取、写入和直接消息
所以没有只读的东西。我完全迷路了,可能是什么问题?
谢谢!