UpgradeableApp API keeps giving “Invalid OAuth consumer key”

China☆狼群 提交于 2019-12-06 06:49:50

问题


Given the following ruby code:

consumer = OAuth::Consumer.new(consumer_key, consumer_secret, {
  site: "https://www.googleapis.com"
})

resp = consumer.request(:put, "/appsmarket/v2/upgradableApp/#{listingId}/#{cwsId}/#{domain}")

puts resp.code+"\n"
puts resp.body

the UpgradeableApp API keeps giving "Invalid OAuth consumer key" error. The consumer key (in the format XXXXXXXXXXXX.apps.googleusercontent.com) was copied directly from the legacy marketplace listing as described in the docs.

I've:

  • verified the system time is correct and synchronized via ntp.
  • tried including xoauth_requestor_id
  • tried generating the request myself via curl (using this to generate the oauth signature)
  • tried enabling "Google Apps Marketplace API" under "Register for additional APIs" on the legacy marketplace listing

Is anybody else experiencing this? Thoughts on other things I can try?

UPDATE Sep 10 2014: I got confirmation from Google that this was an issue on their end for which a fix was applied. I've since been able to successfully use the ruby code above to do a migration.


回答1:


I got confirmation from Google that this was an issue on their end for which a fix was applied. I've since been able to successfully use the ruby code above to do a migration.



来源:https://stackoverflow.com/questions/25540638/upgradeableapp-api-keeps-giving-invalid-oauth-consumer-key

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!