[英]Apigee BaaS: Create multiple entities using usergrid node.js sdk doesn't work
[英]Using Apigee or usergrid REST API, how can I query entities by a list of UUIDs?
如何使用REST API在Apigee / usergrid中使用UUID列表查詢實體? 我正在使用Apigee通過REST API發送推送通知,並使其能夠在1台設備或所有設備上正常工作,但希望定位到部分設備。 我已經翻閱了文檔,但找不到任何東西。 有人能這樣做嗎?
奇怪的是,我可以使用GET查詢設備,但是等效的POST發送推不起作用。
// This works
[GET] https://api.usergrid.com/{{ORG_ID}}/{{APP_ID}}/devices/;ql=UUID=3646781A-D83E-4FD9-B873-C212BA2CD4DD?access_token={{ACCESS_TOKEN}}
// This does not work
[POST]
https://api.usergrid.com/{{ORG_ID}}/{{APP_ID}}/devices;ql=select * where uuid=3646781A-D83E-4FD9-B873-C212BA2CD4DD/notifications?access_token={{ACCESS_TOKEN}}
POST請求的響應表明未找到任何設備
// this also works for sending a push
[POST]
https://api.usergrid.com/{{ORG_ID}}/{{APP_ID}}/devices/3646781A-D83E-4FD9-B873-C212BA2CD4DD/notifications?access_token={{ACCESS_TOKEN}}
嘗試使用OR運算符查詢:
?ql = uuid = someuuid或uuid = someuuid
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.