Giter Site home page Giter Site logo

minibot's Introduction

minibot

基于QQMini机器HTTPAPI插件的一个sdk

环境要求

  • PHP >= 7.3
  • PHP cURL扩展

安装

composer require tyjiosen/minibot dev-master

调用方法

$config = [

	'url' => 'http://localhost:53392', //HTTP服务地址
	'password' => '123456' // 访问密码 不设置可不传
];

$main = new Tyjiosen\Minibot\Main($config);

//请按接口文档来调用接口 https://mnhttp2-qqbot.doc.coding.io/
//下面是调用示范 调用的方法名就是接口路径 结果是插件返回的 
$main->log(['msg'=>'打印日志测试']); //打印日志
$main->get_friend_info(['bot'=>'机器qq','qq'=>'好友qq']); //取好友信息
$main->get_friend_list(['bot'=>'机器qq']); //取好友列表

minibot's People

Contributors

tyjiosen avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.