我打算在iOS應用中使用Google Places API自動完成功能,因此我在Google Developers Console中設置了Google Places API。但是當我發送HTTP請求時,我收到了拒絕消息。任何想法我失蹤?如何在Google Developer Console中設置Google Places API?
- 你可以看到谷歌Places API的啓用
- 我送了一些要求,這是圖表
-
上
- 但請求被拒絕
與此同時,我已經設置了結算信息。
我打算在iOS應用中使用Google Places API自動完成功能,因此我在Google Developers Console中設置了Google Places API。但是當我發送HTTP請求時,我收到了拒絕消息。任何想法我失蹤?如何在Google Developer Console中設置Google Places API?
與此同時,我已經設置了結算信息。
這裏我發現了一些線索:Google Places API Autocomplete on iOS
需要創建Browser key
,留空HTTP refers
。在URL中使用瀏覽器鍵。
你需要用「安裝的應用程序」,並在側選擇iOS上Developer Console
也許你沒有使用iOS密鑰創建客戶端ID。請通過以下步驟驗證您是否獲得了正確的密鑰。
Credentials
並單擊Create new Key
。希望這有助於!