@@ -93,8 +93,11 @@ $object->setAssociativeArray(
93
93
"languageTypes", array("php" => "awesome", "ruby" => "wtf")
94
94
);
95
95
96
- // Save:
96
+ // Save normally :
97
97
$object->save();
98
+
99
+ // Or pass true to use the master key to override ACLs when saving:
100
+ $object->save(true);
98
101
```
99
102
100
103
Users:
@@ -148,9 +151,12 @@ $object = $query->get("anObjectId");
148
151
149
152
$query->limit(10); // default 100, max 1000
150
153
151
- // All results:
154
+ // All results, normally :
152
155
$results = $query->find();
153
156
157
+ // Or pass true to use the master key to override ACLs when querying:
158
+ $results = $query->find(true);
159
+
154
160
// Just the first result:
155
161
$first = $query->first();
156
162
@@ -200,22 +206,29 @@ Push:
200
206
``` php
201
207
$data = array("alert" => "Hi!");
202
208
209
+ // Parse Server requires the master key for sending push. Pass true as the second parameter.
210
+ ParsePush::send($data, true);
211
+
203
212
// Push to Channels
204
213
ParsePush::send(array(
205
214
"channels" => ["PHPFans"],
206
215
"data" => $data
207
- ));
216
+ ), true );
208
217
209
218
// Push to Query
210
219
$query = ParseInstallation::query();
211
220
$query->equalTo("design", "rad");
221
+
212
222
ParsePush::send(array(
213
223
"where" => $query,
214
224
"data" => $data
215
- ));
225
+ ), true );
216
226
217
- // Parse Server requires the master key for sending push. Pass true as the second parameter.
218
- ParsePush::send($data, true);
227
+ // Get Push Status Id
228
+ $reponse = ParsePush::send($data, true);
229
+ if(isset($response['_headers']['X-Push-Status-Id'])) {
230
+ // Retrieve info on _PushStatus using the id
231
+ }
219
232
```
220
233
221
234
Contributing / Testing
0 commit comments