简体   繁体   English

从arrowdb中查询当前用户的数据

[英]Query data from current user in arrowdb

how can i query the checkin from a specific user in the api? 如何从api中的特定用户查询签入? Like a join with the user and filter by the user_id? 像是与用户加入并按user_id过滤? It because checkin does not have user_id property. 这是因为签入不具有user_id属性。

只是做了一个变通办法,将owner_id用作签入创建中的custom_field。

You should be able to use user_id in query checkins API, like following example: 您应该能够在查询签入API中使用user_id,例如以下示例:

curl -c cookies.txt -b cookies.txt -X GET --data-urlencode 'where={"user_id":"56207d2616d4b1e2de4bbba8"}' "https://api.cloud.appcelerator.com/v1/checkins/query.json?key=myOwnAppKey&pretty_json=true&show_user_like=true&count=true"
{
  "meta": {
    "code": 200,
    "status": "ok",
    "method_name": "queryCheckins",
    "count": 1
  },
  "response": {
     "checkins": [
      {
        "id": "56e67fb3550a680912694e17",
        "created_at": "2016-03-14T09:09:07+0000",
        "updated_at": "2016-03-14T09:09:07+0000",
        "place_id": "56e67edda778ca09086b8ff1",
        "user_id": "56207d2616d4b1e2de4bbba8"
      }
    ]
  }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM