2017 © Pedro Peláez
 

library laravel-tuling

图灵APi集成

image

jormin/laravel-tuling

图灵APi集成

  • Monday, October 16, 2017
  • by jormin
  • Repository
  • 1 Watchers
  • 1 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 26 % Grown

The README.md

集成了 图灵 官方的Api接口。, (*1)

安装

  1. 安装包文件, (*2)

    bash $ composer require jormin/laravel-tuling, (*3)

配置

  1. 注册 ServiceProvider:, (*4)

    Jormin\TuLing\TuLingServiceProvider::class,
    
  2. 创建配置文件:, (*5)

    php artisan vendor:publish
    

    执行命令后会在 config 目录下生成本扩展配置文件:laravel-tuling.php。, (*6)

  3. .env 文件中增加如下配置:, (*7)

    • TULING_API_KEY:图灵ApiKey。

使用

  1. 获取自动回复信息, (*8)

       $message = '西安天气';
       $userID = '用户ID';
       $location = '陕西省西安市雁塔区';
       Jormin\TuLing\TuLing::chat($message, $userID, $location);
    

    消息字段详细见 图灵官方文档., (*9)

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

16/10 2017

dev-master

9999999-dev https://github.com/jormin/laravel-tuling

图灵APi集成

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel jormin 图灵

15/10 2017

v1.0.2

1.0.2.0 https://github.com/jormin/laravel-tuling

图灵APi集成

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel jormin 图灵

15/10 2017

v1.0.1

1.0.1.0 https://github.com/jormin/laravel-tuling

图灵APi集成

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel jormin 图灵

15/10 2017

v1.0

1.0.0.0 https://github.com/jormin/laravel-tuling

图灵APi集成

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel jormin 图灵