Skip to content

Commit 9a6d6fe

Browse files
committed
Add example curl requests
1 parent b50c871 commit 9a6d6fe

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,33 @@ Use the [graph API explorer](https://developers.facebook.com/tools/explorer/) to
1818

1919

2020
Once you're ready to make a more permanent access token, [make a facebook app](https://developers.facebook.com/docs/apps/register), set the permissions you need, and click debug on the [app's access token](https://developers.facebook.com/tools/accesstoken/) so you can get to the page that allows you to `Extend Access Token`
21+
22+
##Check group activity
23+
24+
####Easy Range - (Days Back,Days Forward)
25+
Example: If I want to look back to last month, daysBack = 60 and daysForward = 30. If I want to look at this week, daysBack = 7 and daysForward = 7.
26+
27+
`curl -X POST \
28+
-H "X-Parse-Application-Id: _PARSEAPPID_" \
29+
-H "X-Parse-REST-API-Key: _PARSEAPIKEY_" \
30+
-H "Content-Type: application/json" \
31+
-d '{"daysBack": _daysBack_, "daysForward": _daysForwardFromThere_}' \
32+
https://api.parse.com/1/functions/countItems`
33+
34+
####Exact Range - (Start Date,End Date)
35+
Specify the specific range to get a count. startDate and endDate are both [Javascript Date Objects](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date).
36+
37+
curl -X POST \
38+
-H "X-Parse-Application-Id: _PARSEAPPID_" \
39+
-H "X-Parse-REST-API-Key: _PARSEAPIKEY_" \
40+
-H "Content-Type: application/json" \
41+
-d '{"beginDate": _startDate_, "endDate": _endDate_}' \
42+
https://api.parse.com/1/functions/countItemsWithDateRanges
43+
44+
You can find your _PARSEAPPID_ and _PARSEAPIKEY_ in your Parse dashboard for your App.
45+
46+
47+
48+
49+
50+

0 commit comments

Comments
 (0)