File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -35,24 +35,28 @@ can get to the page that allows you to `Extend Access Token`
35
35
Example: If I want to look back to last month, daysBack = 60 and daysForward
36
36
= 30. If I want to look at this week, daysBack = 7 and daysForward = 7.
37
37
38
- `curl -X POST \
38
+ ``` sh
39
+ curl -X POST \
39
40
-H " X-Parse-Application-Id: _PARSEAPPID_" \
40
41
-H " X-Parse-REST-API-Key: _PARSEAPIKEY_" \
41
42
-H " Content-Type: application/json" \
42
43
-d ' {"daysBack": _daysBack_, "daysForward": _daysForwardFromThere_}' \
43
- https://api.parse.com/1/functions/countItems`
44
+ https://api.parse.com/1/functions/countItems
45
+ ```
44
46
45
47
#### Exact Range - (Start Date, End Date)
46
48
47
49
Specify the specific range to get a count. startDate and endDate are both
48
50
[ Javascript Date Objects] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date ) .
49
51
50
- `curl -X POST \
52
+ ``` sh
53
+ curl -X POST \
51
54
-H " X-Parse-Application-Id: _PARSEAPPID_" \
52
55
-H " X-Parse-REST-API-Key: _PARSEAPIKEY_" \
53
56
-H " Content-Type: application/json" \
54
57
-d ' {"beginDate": _startDate_, "endDate": _endDate_}' \
55
- https://api.parse.com/1/functions/countItemsWithDateRanges`
58
+ https://api.parse.com/1/functions/countItemsWithDateRanges
59
+ ```
56
60
57
61
You can find your _ PARSEAPPID_ and _ PARSEAPIKEY_ in your Parse dashboard for
58
62
your App.
You can’t perform that action at this time.
0 commit comments