Laravel&Freshdesk-创建故障单时返回ERROR 400

时间:2018-09-26 10:19:08

标签: php laravel freshdesk

我使用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

enter image description here

0 个答案:

没有答案