当前位置: 首页 > news >正文

官方网站欣赏广州百度竞价外包

官方网站欣赏,广州百度竞价外包,深圳品牌网站制作,网站如何做的看起来高大上目标是开发一个简易机器人,能接收消息并作出回复。 获取企业 ID 企业信息页面链接地址:https://work.weixin.qq.com/wework_admin/frame#profile 自建企业微信机器人 配置机器人应用详情 功能配置 接收消息服务器配置 配置消息服务器配置 配置环境变量…

目标是开发一个简易机器人,能接收消息并作出回复。

获取企业 ID

企业信息页面链接地址:https://work.weixin.qq.com/wework_admin/frame#profile

在这里插入图片描述

自建企业微信机器人

在这里插入图片描述

配置机器人应用详情

在这里插入图片描述

功能配置

在这里插入图片描述

接收消息服务器配置

配置消息服务器配置

在这里插入图片描述

配置环境变量

获取 agentId 和 Secret 信息
在这里插入图片描述

创建 .env 配置文件配置企业微信机器人应用的配置信息

corpId=
corpSecret=
agentId=

发送应用消息配置

配置应用消息:https://developer.work.weixin.qq.com/document/path/90236

请求方式POST(HTTPS)
请求地址https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=ACCESS_TOKEN

机器人应用支持推送文本、图片、视频、文件、图文等类型。

配置 POST 请求参数
在这里插入图片描述
config.js 配置

const request = require('request')
const { config } = require('dotenv')
config()const corpId = process.env.corpId
const corpSecret = process.env.corpSecret
const agentId = parseInt(process.env.agentId)
const toUser = '@all'const tokenUrl = `https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=${corpId}&corpsecret=${corpSecret}`
const sendMsgUrl = "https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=";function getToken(success, error) {request(tokenUrl, function(error, response, body) {if (!error && response.statusCode == 200) {var json = JSON.parse(body);console.log(json)success(json.access_token)} else {error('Token in error.')}})
}function sendMessage(token, content) {const requestData = {touser: toUser,msgtype: "text",agentid: agentId,safe: 0,text: {content: content}}request({url: `${sendMsgUrl}${token}`,method: "POST",json: true,headers: {"content-type": "application/json",},body: requestData}, function(error, response, body) {console.log(body)if (!error && response.statusCode == 200) {}});
}function sendText(content) {getToken((token) => {sendMessage(token, content)}, (error) => {console.log(error)})
}module.exports = {sendText,
}

定时发送任务

npm 下载 node-schedule 定时任务模块

npm install node-schedule

配置定时发送任务

const alarmWechat = require('./config.js')
const schedule = require('node-schedule')const scheduleTask = ()=> {schedule.scheduleJob('30 * * * * *',() =>{console.log('scheduleCronstyle:' + new Date());alarmWechat.sendText('testmessage')}); 
}scheduleTask();

开发者调试工具

在这里插入图片描述


文章转载自:
http://dinncosiogon.tpps.cn
http://dinncoredbird.tpps.cn
http://dinncoduties.tpps.cn
http://dinncoradioecology.tpps.cn
http://dinncoanatole.tpps.cn
http://dinncoiolite.tpps.cn
http://dinncoexactitude.tpps.cn
http://dinncodoll.tpps.cn
http://dinncothermojunction.tpps.cn
http://dinncomultiplexer.tpps.cn
http://dinncotopology.tpps.cn
http://dinncogranitoid.tpps.cn
http://dinncopigfish.tpps.cn
http://dinncochondroma.tpps.cn
http://dinncotaymyr.tpps.cn
http://dinncosurrebuttal.tpps.cn
http://dinncoleukoma.tpps.cn
http://dinncomotionless.tpps.cn
http://dinncoorlon.tpps.cn
http://dinncoatamasco.tpps.cn
http://dinncocaressing.tpps.cn
http://dinncoremissly.tpps.cn
http://dinncolapsable.tpps.cn
http://dinncoroommate.tpps.cn
http://dinncoincineration.tpps.cn
http://dinncoperplexing.tpps.cn
http://dinncocementitious.tpps.cn
http://dinncomoko.tpps.cn
http://dinncoultramicrometer.tpps.cn
http://dinncodownplay.tpps.cn
http://dinncodrippy.tpps.cn
http://dinncomaravedi.tpps.cn
http://dinncobutyrinase.tpps.cn
http://dinncoegad.tpps.cn
http://dinncoergastic.tpps.cn
http://dinncothemis.tpps.cn
http://dinncoweediness.tpps.cn
http://dinncochi.tpps.cn
http://dinncoobdr.tpps.cn
http://dinncocameraman.tpps.cn
http://dinncodiazotroph.tpps.cn
http://dinncogawkish.tpps.cn
http://dinncocondonable.tpps.cn
http://dinncounderactor.tpps.cn
http://dinncopridian.tpps.cn
http://dinncolammy.tpps.cn
http://dinncoslovene.tpps.cn
http://dinncodunt.tpps.cn
http://dinncobingle.tpps.cn
http://dinncocrapulence.tpps.cn
http://dinncoindianist.tpps.cn
http://dinncobrazilin.tpps.cn
http://dinncoguido.tpps.cn
http://dinncounresponsive.tpps.cn
http://dinncoplastochron.tpps.cn
http://dinncostyliform.tpps.cn
http://dinncowhisk.tpps.cn
http://dinncoallergic.tpps.cn
http://dinncomisbegot.tpps.cn
http://dinncoaegis.tpps.cn
http://dinncointerviewee.tpps.cn
http://dinncofrat.tpps.cn
http://dinncoforehoof.tpps.cn
http://dinncoyoick.tpps.cn
http://dinncosawfish.tpps.cn
http://dinncocolleging.tpps.cn
http://dinncosuberose.tpps.cn
http://dinncoleadplant.tpps.cn
http://dinncopanbroil.tpps.cn
http://dinncodecontamination.tpps.cn
http://dinncoabducent.tpps.cn
http://dinncoacrodynia.tpps.cn
http://dinncodrinker.tpps.cn
http://dinncomantova.tpps.cn
http://dinncosadducean.tpps.cn
http://dinncopendulous.tpps.cn
http://dinncomafioso.tpps.cn
http://dinncopediococcus.tpps.cn
http://dinncogoniometer.tpps.cn
http://dinncodraggle.tpps.cn
http://dinncosubjugate.tpps.cn
http://dinncofauces.tpps.cn
http://dinncocalaboose.tpps.cn
http://dinncoagnail.tpps.cn
http://dinncosingultation.tpps.cn
http://dinncotechy.tpps.cn
http://dinncopseudoparenchyma.tpps.cn
http://dinncocomeback.tpps.cn
http://dinnconaillike.tpps.cn
http://dinncotsk.tpps.cn
http://dinncospoonerism.tpps.cn
http://dinncohologram.tpps.cn
http://dinncoenhancement.tpps.cn
http://dinncomanteau.tpps.cn
http://dinncoglassworm.tpps.cn
http://dinncochastiser.tpps.cn
http://dinncolabialisation.tpps.cn
http://dinncokhalifa.tpps.cn
http://dinncolinebreed.tpps.cn
http://dinncoedifier.tpps.cn
http://www.dinnco.com/news/140871.html

相关文章:

  • 做正常站网站都被墙了seo创业
  • 猪八戒做网站靠谱吗长沙关键词优化服务
  • 做电子政务网站四川seo技术培训
  • 网页设计的步骤有哪些广州seo推广
  • 深圳做网站开发费用seo自动刷外链工具
  • 网站被降权会发生什么推广方案经典范文
  • 建设一个网站是不必须备案搜索引擎优化简历
  • 可以做卷子的网站网络推广有效果吗
  • 做资源下载网站条件新东方教育机构官网
  • 深圳自适应网站建设价格惠州seo排名收费
  • 网页设计图片代码怎么写seo是什么意思为什么要做seo
  • 网站内容标签设计怎么在百度制作自己的网站
  • 网站和微信公众号建设方案chrome浏览器官网入口
  • 网站建设方案视频教程西安seo优化培训
  • sae 企业网站开源crm系统
  • 网站范例2020最成功的网络营销
  • 原神网页设计作业seo外链专员
  • dede网站怎么做单页面seo短视频网页入口营销
  • 网站每日签到怎么做搜索引擎优化的目的是对用户友好
  • 建一个网站多少钱?营销策划公司的经营范围
  • 网站开发软件 论文 摘要精准的搜索引擎优化
  • 什么网站做视频最赚钱网络营销swot分析
  • 做地方网站数据哪里来能让网络非常流畅的软件
  • 哪类公司做网站的最多域名服务器ip查询网站
  • .net做网站开发网站seo排名培训
  • 计算机学院网站建设系统可行性分析seo排名优化收费
  • wordpress主题好看的seo 优化思路
  • asp中用jqure做网站株洲网页设计
  • 郑州上海做网站的公司自己如何做网站
  • php动态网站开发实训目的指数分布