-
Notifications
You must be signed in to change notification settings - Fork 4
Extra Create
Brad Ploeger edited this page Apr 3, 2019
·
1 revision
Creates a new extra
$rezdyApi->extra->create($request);- Rezdy\Requests\Extra: $request
- none
use Rezdy\RezdyAPI;
use Rezdy\Requests\Extra;
// Initialize the API
$rezdyAPI = new RezdyAPI('your api key');
$extraParams = [
'description'=> 'Extra Description',
'extraPriceType' => 'ANY',
'name' => 'Extra',
'price' => 1.00 ];
// Create an Extra request
$extra = new Extra($extraParams);
// Send the Extra request to the API
$response = $rezdyAPI->extra->create($extra);
// View the response
echo $response;Rezdy API V1 PHP Wrapper