无法访问 vline.带有 postMessage() 的消息对象
Unable to access vline.Message object with postMessage()
在实现vLine API时,我遇到了一个问题。使用 vline.Channel
类的 postMessage()
方法时,目标用户成功接收消息,但vline.Promise
对象的成功回调未返回有效的 vline.Message
对象。至少我对某些vline.Message
方法没有帮助,例如getChannel()
或getCreationTime()
.
法典:
$channel.postMessage(textMessage)
.done(function (message) {
console.log("Message sending successfull || Message sent to " + message.getChannel().getDisplayName() + " at " + message.getCreationTime());
},
this)
.fail(function (err) {
console.log("Message sending failed || Error Type: " + err.type + " || Error Message: " + err.message);
},
this);
结果(控制台日志):
Message sending failed || Error Type: undefined || Error Message: Object #<Object> has no method 'getChannel'
这是 vLine 开发人员站点上尚未引用的 API 更改的结果,还是代码上存在错误?
这是我们这边的一个错误; 对此感到抱歉。现在应该修复它。
相关文章:
- 递归对象消息
- 尝试从对象打印出响应消息
- 我的代码给了我一条错误消息:GetElementById()为null或不是对象
- 基于当前悬停对象更改引导弹出消息
- Plupload无法访问JSON对象的错误消息
- 变量错误消息=“ ”;中应包含的对象
- 如何避免收到一条消息,指出对象未定义
- Javascript错误消息,自定义对象表示
- 对象 #<传入消息> 没有方法“post”
- 在 AngularJS 中,如何使指令成为对象,以便可以向它“传递消息”(在其上调用方法)
- 这个对象在 Chrome 中的错误“消息”获取器
- Docusign / Salesforce:从 Salesforce 自定义对象发送信封会给出错误消息“记录中没有联系人
- 如何使用TinyMCE和Internet Explorer 8解决“需要对象”错误消息
- 无法访问 vline.带有 postMessage() 的消息对象
- Jquery / Handlebars错误消息 - 未捕获的类型错误:对象[对象对象]没有方法“匹配”
- 尝试使用 quatitize.js但收到错误消息“未捕获的类型错误:对象 #<错误>没有方法'调色板'”
- 即使在将操作处理程序放在“actions”对象中后,我仍然在 Emberjs 中不断收到弃用消息
- 我在node.js中收到一条消息,对象套接字未定义
- 从父对象内部的相邻对象打印对象会导致'未定义'消息
- 消息:对象没有'不支持此属性或方法