检索信标附件邻近信标 api
Retrieving beacon attachments proximity beacon api
目前我已经将信标注册到 Google 邻近信标 API。它们是 Eddystone 信标。我还可以检索信标的数据并添加附件(我认为)。我遇到的问题是检索这些附件。
我使用以下网站检索附件,但在 return 中出现 404 错误。
https://labs.ribot.co.uk/exploring-google-eddystone-with-the-proximity-beacon-api-bc9256c97e05#.rndagn22e
<a href=//www.google.com/><span id=logo aria-label=Google></span></a>
<p><b>404.</b> <ins>That’s an error.</ins>
<p>The requested URL <code>/v1beta/beaconName/attachments/</code> was not found on this server.
<ins>That’s all we know.</ins>
我使用了 GET 方法来检索数据。我的应用程序使用 Volley JsonObjectRequest 发送带有令牌的请求。这是我正在使用的URL:
获取https://proximitybeacon.googleapis.com/v1beta1/beaconName/attachments
如果我使用 GET 方法检索信标,我也不会收到附件(如果它应该 return 附件我也找不到它)。
会不会是我用错了URL?有没有其他人遇到同样的问题?
编辑:
我用所需的查询参数更新了我的 url:
https://proximitybeacon.googleapis.com/v1beta/beaconName/attachments?namespacedType=*/*
在请求 headers 中,我放置了从之前的请求 (oAuth2.0) 中检索到的令牌。这里没有涉及 API 键。用于更新、注册和检索信标的所有其他方法都有效,但检索附件除外。
已解决
URL
中少了一个 1
https://proximitybeacon.googleapis.com/v1beta1/beaconName/attachments?namespacedType=*/*
https://proximitybeacon.googleapis.com/v1beta/beaconName/attachments?namespacedType=*/*
上面的URL在v1beta后面少了一个1,应该是下面deURL中写的v1beta1。
https://proximitybeacon.googleapis.com/v1beta1/beaconName/attachments?namespacedType=*/*
目前我已经将信标注册到 Google 邻近信标 API。它们是 Eddystone 信标。我还可以检索信标的数据并添加附件(我认为)。我遇到的问题是检索这些附件。
我使用以下网站检索附件,但在 return 中出现 404 错误。 https://labs.ribot.co.uk/exploring-google-eddystone-with-the-proximity-beacon-api-bc9256c97e05#.rndagn22e
<a href=//www.google.com/><span id=logo aria-label=Google></span></a>
<p><b>404.</b> <ins>That’s an error.</ins>
<p>The requested URL <code>/v1beta/beaconName/attachments/</code> was not found on this server.
<ins>That’s all we know.</ins>
我使用了 GET 方法来检索数据。我的应用程序使用 Volley JsonObjectRequest 发送带有令牌的请求。这是我正在使用的URL:
获取https://proximitybeacon.googleapis.com/v1beta1/beaconName/attachments
如果我使用 GET 方法检索信标,我也不会收到附件(如果它应该 return 附件我也找不到它)。
会不会是我用错了URL?有没有其他人遇到同样的问题?
编辑: 我用所需的查询参数更新了我的 url:
https://proximitybeacon.googleapis.com/v1beta/beaconName/attachments?namespacedType=*/*
在请求 headers 中,我放置了从之前的请求 (oAuth2.0) 中检索到的令牌。这里没有涉及 API 键。用于更新、注册和检索信标的所有其他方法都有效,但检索附件除外。
已解决 URL
中少了一个 1https://proximitybeacon.googleapis.com/v1beta1/beaconName/attachments?namespacedType=*/*
https://proximitybeacon.googleapis.com/v1beta/beaconName/attachments?namespacedType=*/*
上面的URL在v1beta后面少了一个1,应该是下面deURL中写的v1beta1。
https://proximitybeacon.googleapis.com/v1beta1/beaconName/attachments?namespacedType=*/*