UpgradeableApp API会不断提供“无效的OAuth使用者密钥"; [英] UpgradeableApp API keeps giving "Invalid OAuth consumer key"

查看:84
本文介绍了UpgradeableApp API会不断提供“无效的OAuth使用者密钥";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

给出以下红宝石代码:

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

UpgradeableApp API始终显示无效的OAuth使用方密钥"错误.消费者密钥(格式为XXXXXXXXXXXX.apps.googleusercontent.com)是直接从旧版市场列表中复制的,如文档中所述.

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.

我已经:

  • 验证系统时间正确并通过ntp同步.
  • 尝试包含xoauth_requestor_id
  • 尝试通过curl自己生成请求(使用以生成oauth签名)
  • 尝试在旧版市场列表的注册其他API"下启用"Google Apps Marketplace API"
  • 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?

更新2014年9月10日:我收到Google的确认,认为这是应用了此修复程序的问题.从那以后,我已经能够成功地使用上面的ruby代码进行迁移.

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.

推荐答案

我从Google收到确认,这是在其末端应用了修复程序的问题.从那以后,我已经能够成功地使用上面的ruby代码进行迁移.

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.

这篇关于UpgradeableApp API会不断提供“无效的OAuth使用者密钥";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆