GithubHelp home page GithubHelp logo

wxwork_push's Introduction

WxWork_Push是什么

利用企业微信的Api,实现推送消息到微信上

是一款类似于server酱Turbo版的一款「程序员」和「服务器」之间的通信软件

注:不需要使用到企业微信,只需要获取 cropid secret agentid三个值即可

WxWork_Push使用方式

使用方式

index.php文件中填入 cropid secret agentid三个值,用GET参数请求

访问方式1(消息推送):http://你的域名/?msg=推送测试
访问方式2(实时天气推送):http://你的域名/?type=weather&loc=guangzhou

参数说明

参数 必须 说明
cropid(已填写在文件中) 企业ID
secret(已填写在文件中) 应用的凭证密钥
agentid(已填写在文件中) 应用ID
msg (二选一) 推送内容,最长不超过2048个字节,否则截断
type=weather&loc=(二选一) 推送天气,loc后接地区参数

注:loc 默认 广州天河,可在 weather.php 中修改,参数可在 https://www.tianqi.com/ 中查看

返回实例

{
   "errcode" : 0,
   "errmsg" : "ok",
}

注:errcode 代码请查看企业微信官方文档详细解析 >点击查看

消息推送样式

消息推送样式1
消息推送样式2

参数获取

如果没有创建企业,请自行注册企业,可以不用验证

corpid获取

点击 此处 登陆企业微信,点击我的企业,最下面就是企业ID

企业ID.png

secretagentid 获取

点击应用管理,点击创建应用,自行填写资料,创建好后即可看到

secret和agentid获取1 secret和agentid获取2

wxwork_push's People

Contributors

mrzhang1899 avatar

Stargazers

 avatar

Watchers

 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.