YouTube API key gives 500 error when restricted to Android

前端 未结 1 1923
被撕碎了的回忆
被撕碎了的回忆 2021-01-23 07:10

I am having a very difficult time querying the YouTube search API using a key that is secured for use on Android exclusively. It seems when I remove restrictions from this key,

相关标签:
1条回答
  • 2021-01-23 07:29

    After some trial and error, this appears to be caused by the format of the fingerprint sent in the x-android-cert header. Instead of accepting the same format required by the dev console (AB:CD:EF:01:23:...), it needs to be sent as a lowercased hex string (abcdef0123...). Hopefully this helps out the next soul unfortunate enough to run into this.

    0 讨论(0)
提交回复
热议问题