我使用Laravel 5.6 .. 而且我使用this包与Freshdesk(https://github.com/mpclarkson/freshdesk-laravel-mpclarkson / freshdesk-laravel)集成
这是我在控制器中的代码。
$new_ticket = Freshdesk::tickets()->create([
"name" => "Mamat",
"requester_id" => 43011076954,
"email" => "mamat@gmail.com",
//"facebook_id" => "",
"phone" => "0123456789",
//"twitter_id" => "",
"unique_external_id" => MD5("mamat@gmail.com"),
"subject" => "Got Problem With You",
"type" => "Technical Problem",
"status" => 2,
"priority" => 3,
"description" => "<b>Want to know</b><p>I would like to know if bla bla bla</p>",
// "responder_id" => "",
// "attachments" => "",
// "cc_emails" => "",
// "custom_fields" => "",
// "due_by" => "",
// "email_config_id" => "",
// "fr_due_by" => "",
// "group_id" => "",
// "product_id" => "",
"source" => 2,
// "tags" => "",
// "company_id" => "",
]);
但是它会给我错误,没有消息,只有错误代码400