README.md in dingbot-0.2.3 vs README.md in dingbot-0.2.5

- old
+ new

@@ -2,11 +2,11 @@ [![Build Status](https://travis-ci.org/thierryxing/dingtalk-bot.svg?branch=master)](https://travis-ci.org/thierryxing/dingtalk-bot) [![Gem Version](https://badge.fury.io/rb/dingbot.svg)](https://rubygems.org/gems/dingbot) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/thierryxing/dingtalk-bot/master/LICENSE.txt) DingTalk Bot是阿里钉钉自定义机器人的Ruby库 -官方文档:[阿里钉钉自定义机器人](https://open-doc.dingtalk.com/docs/doc.htm?spm=a219a.7629140.0.0.karFPe&treeId=257&articleId=105735&docType=1). +官方文档:[阿里钉钉自定义机器人](https://developers.dingtalk.com/document/robots/robot-overview). ## 安装 从rubygems中安装: @@ -26,15 +26,17 @@ ```ruby # 全局配置方式 DingBot.configure do |config| config.endpoint = 'https://oapi.dingtalk.com/robot/send' # API endpoint URL, default: ENV['DINGTALK_API_ENDPOINT'] or https://oapi.dingtalk.com/robot/send - config.access_token = '3ddef428f1478056e858450e07272834c79bd538e8055a04e989573c469xxxx' # access token, default: ENV['DINGTALK_ACCESS_TOKEN'] + config.access_token = 'your access token' # access token, default: ENV['DINGTALK_ACCESS_TOKEN'] + config.secret = "your sign secret" # sign secret end # 局部配置方式 DingBot.endpoint='https://oapi.dingtalk.com/robot/send' - DingBot.access_token = '3ddef428f1478056e858450e07272834c79bd538e8055a04e989573c469xxxx' + DingBot.access_token = 'your access token' + DingBot.secret = "your sign secret" # sign secret ``` 发送消息 ```ruby # 快速发送一套只包含文本的Text消息(不需要构造Message对象)