Skip to content

Commit

Permalink
[Fix] 修正sendTxt示例错误
Browse files Browse the repository at this point in the history
  • Loading branch information
plusmancn committed Jan 13, 2016
1 parent 9360b67 commit 8161399
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -61,6 +61,7 @@ Success Return

2) **onceGetToken**
为了避免频繁请求环信接口,token获取顺序如下

1. 从内存读取
2. 从tokenGet方法读
3. 调用getToken方法,从环信请求,并缓存
Expand All @@ -85,6 +86,9 @@ Sucess Return {Stirng} token
// 消息实例初始化
var message = new Huanxin.Message('cn_18667903755', 'hello world!', 'cn_10000');
huaxin.sendTxt(message, function(err, res){
//...something to do ...
});
```


Expand Down

0 comments on commit 8161399

Please sign in to comment.