0

Construct a Parse Class Query

doug 10 jaar geleden bijgewerkt 10 jaar geleden 1
I am looking to construct a query to get specific list of Class Objects using the Parse Rest API. I have already populated data with the Data Browser. I have been able to use URL parameters such as:
order=lastName,priority&limit=500
which have worked just fine. However when I try to build a query (outlined here) such as:
where={'user':'[preferences:current-user]'}&order=lastName,priority&limit=500
I get no response. What am I doing with this URL that is incorrect?
Just to follow up with this, Ian gave me this solution. This is because of how Parse has to have items url encoded:

<action name="sync-contacts">
	<assign property="var:params" value="where={"user":"[preferences:current-user]"}" encoding="url"/>
	<assign property="datasource:parseSyncDown.source" value="https://api.parse.com/1/classes/Contact?[var:params]&order=lastName,priority&limit=500" />
	<alpha target="WAITING" value="1" time=".1" />
</action>
The quotes within the 'value' need to be swapped out with: &quot;