@@ -126,7 +126,7 @@ public function start(): Tournament
126
126
throw new AlreadyStartedException ('Tournament is already underway. ' );
127
127
}
128
128
129
- $ response = $ this ->client ->request ('POST ' , "tournaments/ {$ this ->id }/start " );
129
+ $ response = $ this ->client ->request ('POST ' , "tournaments/ {$ this ->id }/start " , ' form ' );
130
130
return self ::fromResponse ($ this ->client , $ response ['tournament ' ]);
131
131
}
132
132
@@ -148,7 +148,7 @@ public function finalize(): Tournament
148
148
throw new StillRunningException ('Tournament is still running. ' );
149
149
}
150
150
151
- $ response = $ this ->client ->request ('POST ' , "tournaments/ {$ this ->id }/finalize " );
151
+ $ response = $ this ->client ->request ('POST ' , "tournaments/ {$ this ->id }/finalize " , ' form ' );
152
152
return self ::fromResponse ($ this ->client , $ response ['tournament ' ]);
153
153
}
154
154
@@ -165,7 +165,7 @@ public function finalize(): Tournament
165
165
*/
166
166
public function reset (): Tournament
167
167
{
168
- $ response = $ this ->client ->request ('POST ' , "tournaments/ {$ this ->id }/reset " );
168
+ $ response = $ this ->client ->request ('POST ' , "tournaments/ {$ this ->id }/reset " , ' form ' );
169
169
return self ::fromResponse ($ this ->client , $ response ['tournament ' ]);
170
170
}
171
171
@@ -183,7 +183,7 @@ public function reset(): Tournament
183
183
*/
184
184
public function update (array $ options = []): Tournament
185
185
{
186
- $ response = $ this ->client ->request ('PUT ' , "tournaments/ {$ this ->id }" , $ this ->client ->mapOptions ($ options , 'tournament ' ));
186
+ $ response = $ this ->client ->request ('PUT ' , "tournaments/ {$ this ->id }" , ' form ' , $ this ->client ->mapOptions ($ options , 'tournament ' ));
187
187
return self ::fromResponse ($ this ->client , $ response ['tournament ' ]);
188
188
}
189
189
@@ -200,7 +200,7 @@ public function update(array $options = []): Tournament
200
200
*/
201
201
public function delete (): Tournament
202
202
{
203
- $ response = $ this ->client ->request ('DELETE ' , "tournaments/ {$ this ->id }" );
203
+ $ response = $ this ->client ->request ('DELETE ' , "tournaments/ {$ this ->id }" , ' form ' );
204
204
return self ::fromResponse ($ this ->client , $ response ['tournament ' ]);
205
205
}
206
206
@@ -217,7 +217,7 @@ public function delete(): Tournament
217
217
*/
218
218
public function clear (): Tournament
219
219
{
220
- $ response = $ this ->client ->request ('POST ' , "tournaments/ {$ this ->id }/participants/clear " );
220
+ $ response = $ this ->client ->request ('POST ' , "tournaments/ {$ this ->id }/participants/clear " , ' form ' );
221
221
return self ::fromResponse ($ this ->client , $ response ['tournament ' ]);
222
222
}
223
223
@@ -239,7 +239,7 @@ public function processCheckins(): Tournament
239
239
throw new AlreadyStartedException ('Tournament is already underway. ' );
240
240
}
241
241
242
- $ response = $ this ->client ->request ('POST ' , "tournaments/ {$ this ->id }/process_check_ins " );
242
+ $ response = $ this ->client ->request ('POST ' , "tournaments/ {$ this ->id }/process_check_ins " , ' form ' );
243
243
return self ::fromResponse ($ this ->client , $ response ['tournament ' ]);
244
244
}
245
245
@@ -261,7 +261,7 @@ public function abortCheckins(): Tournament
261
261
throw new AlreadyStartedException ('Tournament is already underway. ' );
262
262
}
263
263
264
- $ response = $ this ->client ->request ('POST ' , "tournaments/ {$ this ->id }/abort_check_in " );
264
+ $ response = $ this ->client ->request ('POST ' , "tournaments/ {$ this ->id }/abort_check_in " , ' form ' );
265
265
return self ::fromResponse ($ this ->client , $ response ['tournament ' ]);
266
266
}
267
267
@@ -279,7 +279,7 @@ public function abortCheckins(): Tournament
279
279
*/
280
280
public function addParticipant (array $ options = []): Participant
281
281
{
282
- $ response = $ this ->client ->request ('POST ' , "tournaments/ {$ this ->id }/participants " , $ this ->client ->mapOptions ($ options , 'participant ' ));
282
+ $ response = $ this ->client ->request ('POST ' , "tournaments/ {$ this ->id }/participants " , ' form ' , $ this ->client ->mapOptions ($ options , 'participant ' ));
283
283
return Participant::fromResponse ($ this ->client , $ response ['participant ' ]);
284
284
}
285
285
@@ -304,7 +304,7 @@ public function bulkAddParticipant(array $options = []): Collection
304
304
];
305
305
}
306
306
307
- $ response = $ this ->client ->request ('POST ' , "tournaments/ {$ this ->id }/participants/bulk_add " , $ options );
307
+ $ response = $ this ->client ->request ('POST ' , "tournaments/ {$ this ->id }/participants/bulk_add " , ' json ' , $ options );
308
308
return Collection::make ($ response )
309
309
->map (fn (array $ participant ) => Participant::fromResponse ($ this ->client , $ participant ['participant ' ]));
310
310
}
@@ -323,7 +323,7 @@ public function bulkAddParticipant(array $options = []): Collection
323
323
*/
324
324
public function deleteParticipant (int $ id ): Participant
325
325
{
326
- $ response = $ this ->client ->request ('DELETE ' , "tournaments/ {$ this ->id }/participants/ {$ id }" );
326
+ $ response = $ this ->client ->request ('DELETE ' , "tournaments/ {$ this ->id }/participants/ {$ id }" , ' form ' );
327
327
return Participant::fromResponse ($ this ->client , $ response ['participant ' ]);
328
328
}
329
329
@@ -342,7 +342,7 @@ public function deleteParticipant(int $id): Participant
342
342
*/
343
343
public function updateParticipant (int $ id , array $ options = []): Participant
344
344
{
345
- $ response = $ this ->client ->request ('PUT ' , "tournaments/ {$ this ->id }/participants/ {$ id }" , $ this ->client ->mapOptions ($ options , 'participant ' ));
345
+ $ response = $ this ->client ->request ('PUT ' , "tournaments/ {$ this ->id }/participants/ {$ id }" , ' form ' , $ this ->client ->mapOptions ($ options , 'participant ' ));
346
346
return Participant::fromResponse ($ this ->client , $ response ['participant ' ]);
347
347
}
348
348
}
0 commit comments