mucts/laravel-sobot

根据智齿智能客服系统提供了包含完整业务流程的开放平台接口(Open API),基于PHP开发的一套API插件。

1.0.0 2020-08-16 01:30 UTC

This package is auto-updated.

Last update: 2024-11-16 10:49:10 UTC


README

Build Status Code Intelligence Status Scrutinizer Code Quality Total Downloads Latest Stable Version License

Laravel AMQP

Sobot Open API SDK for Laravel 7

Installation

Server Requirements

you will need to make sure your server meets the following requirements:

  • php ^7.4
  • JSON PHP Extension
  • mucts/sobot ^5.0
  • laravel/framework ^7.0

Laravel Installation

composer require mucts/laravel-sobot

Usage

Please refer to mucts/sobot

<?php

use MuCTS\Laravel\Sobot\Facades\Sobot;

$res = Sobot::connection('default')
->tickets()
->ticketList()
->whereCreateStartDatetime('2020-08-01 00:00:00')
->whereCreateEndDatetime('2020-08-16 00:00:00')
->whereTicketStatus(0)
->request();

Configuration

If config/sobot.php not exist, run below:

php artisan vendor:publish