承接 ryodevz/mibot-api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ryodevz/mibot-api

Composer 安装命令:

composer require ryodevz/mibot-api

包简介

MIBot API wrapper for ease of use.

README 文档

README

MIBot API wrapper for ease of use.

Installation

composer require ryodevz/mibot-api

Configuration

<?php

use Ryodevz\MiBot\Config;

// API Token
Config::setApiToken('6|Rjr8x0nuGRm9BwZLm5AwywmNP8O5N9rZZ7uyWw5J');

// Device ID
Config::setDevice('6287743985629');

Send Text Message

<?php

use Ryodevz\MiBot\Api;

$receiver = '6287999999999';
$message_text = 'Hello World'

$response = Api::textMessage($receiver, $message_text)->send();

var_dump($response);

Send Button Message

<?php

use Ryodevz\MiBot\Api;

$receiver = '6287999999999';
$message_text = 'Hello World'

$buttons = [
    [
        'type' => 'reply',
        'text' => 'Information',
        'command' => 'info',
    ],
    [
        'type' => 'url',
        'text' => 'Website',
        'url' => 'https://profile.ytryo.my.id',
    ],
    [
        'type' => 'phone',
        'text' => 'Contact Me',
        'phone' => '6281917999999',
    ],
]

$response = Api::buttonMessage($receiver, $message_text, $buttons)->send();

var_dump($response);

Send Option Message

<?php

use Ryodevz\MiBot\Api;

$receiver = '6287999999999';
$message_text = 'Hello World';
$button_text = 'Button Text';
$message_title = 'Naruto Shippuded';

$sections = [
    [
        'title' => 'Section 1 title',
        'rows' => [
            [
                'title' => 'Episode 1',
                'command' => 'eps_1',
            ],
            [
                'title' => 'Episode 2',
                'command' => 'eps_2',
            ],
            [
                'title' => 'Episode 3',
                'command' => 'eps_3',
            ],
        ]
    ],
    [
        'title' => 'Section 2 title',
        'rows' => [
            [
                'title' => 'Episode 4',
                'command' => 'eps_4',
            ],
        ]
    ],
];

$response = Api::optionMessage($receiver, $message_text, $sections, $button_text, $message_title)->send();

var_dump($response);

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-06-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固