Googleのビーコン近接APIを使用しようとしています。私はそれらを統合するには、次の手順に従っていますGoogleプロキシミティビーコンAPIが不正なエラー403を返します
その後1) Signed up on Google Api Console.
2) Created new Project.
3) enabled Beacon proximity api and Nearby Api.
4) Generated Api key from Credentials.
私は、次のAPI呼び出し:follwing URLを
{
"advertisedId": {
"type": "EDDYSTONE",
"id": "ABEiM0RVZneImaq7zN3u/w=="
},
"status": "ACTIVE",
"placeId": "ChIJL_P_CXMEDTkRw0ZdG-0GVvw",
"latLng": {
"latitude": "71.6693771",
"longitude": "-22.1966037"
},
"indoorLevel": {
"name": "1"
},
"expectedStability": "STABLE",
"description": "An example beacon.",
"properties": {
"position": "entryway"
}
}
を:
https://proximitybeacon.googleapis.com/v1beta1/beacons:register?key=xxxx(my_api_key)
が、応答は言う:
{
"error": {
"code": 403,
"message": "Unauthorized.",
"status": "PERMISSION_DENIED"
}
}
何ですか私が行方不明だということ。..
I also tried to use Beacon tools app but after entering EID and all other credentials..the App crashes(on android), while it is not able to connect to my eddystone on Ios.
beacon.jsonあなたはあなたの実際のAPIを使用しなかったとして
は、この呼び出しのボディを設定URLの最後にキーがありますか? –
はい(私は実際の値を使用しました)私はここでそれをトリミングしました..それ以外の場合、無効なApi_keyエラー –