2014年8月31日 星期日

[tech]"parse.com" api how to do "like" query or "contains" query / whitespace




You can get what you need with a a regex of the form "\^\QJ\E". The whole query will look like the following:
curl -H "X-Parse-Application-Id: $app_id" \
     -H "X-Parse-REST-API-Key:  $api_key" \
     -G --data-urlencode 'where={"first_name" : { "$regex" : "^\QJ\E" } }' \
     https://api.parse.com/1/users/

Are "like" or regex queries possible via the REST API? | Parse
https://www.parse.com/questions/are-like-or-regex-queries-possible-via-the-rest-api


沒有留言:

張貼留言