تخطي إلى المحتوى الرئيس

Example: Update Ticket, Add a Reply

في PHP SDK
قائمة المؤلفين
منشور: 18 يوليو 2022|آخر تحديث: 18 يوليو 2022
<?php use Deskpro\API\DeskproClient; use Deskpro\API\Exception\APIException; include (__DIR__ . '/vendor/autoload.php'); $client = new DeskproClient('http://deskpro.company.com'); $client->setAuthKey(1, 'dev-admin-code'); try { $payload = ['department' => 5]; $resp = $client->put('/tickets/678', $payload); } catch (APIException $e) { echo $e->getMessage(); }
copy

Add a replyCopy link to Add a reply to clipboard

<?php use Deskpro\API\DeskproClient; use Deskpro\API\Exception\APIException; include (__DIR__ . '/vendor/autoload.php'); $client = new DeskproClient('http://deskpro.company.com'); $client->setAuthKey(1, 'dev-admin-code'); try { $payload = [ 'person' => 'joe@deskprodemo.com', 'message' => 'test new reply by a user' ]; $resp = $client->post('/tickets/678/messages', $payload); } catch (APIException $e) { echo $e->getMessage(); }
copy
مفيد.غير مفيد
الصفحة التاليةExample: Get Ticket
الصفحة السابقةExample: Create Ticket

الرجاء تسجيل الدخول أو التسجيل لتقديم تعليق.