I want to send messages,images ... using skype BOT API. If there is any other NPM available for doing skype chat.
我想使用skype BOT API发送消息,图像......如果有任何其他NPM可用于进行Skype聊天。
Refer how to get access token from the docs
请参阅如何从文档中获取访问令牌
https://azure.microsoft.com/en-us/documentation/articles/active-directory-v2-protocols-oauth-code/
Then using this token i will try to send message using the following request
然后使用此令牌,我将尝试使用以下请求发送消息
Refer docs:
conversationId: 29:f2ca6a4a-93bd-434a-9ca5-5f81f8f9b455
request({
url: 'https://api.skype.com/v3/conversations/29:f2ca6a4a-93bd-434a-9ca5-5f81f8f9b455/activities',
method: "POST",
json: true,
headers: {
Authorization: ' Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjIifQ.eyJpYXQiOjE0NzMzMTk4MDEsImV4cCI6MTQ3MzQwNjqwqwqwqwt5cGVpZCI6ImFtdF8wNjIiLCJzY3AiOjk1OCwiY3NpIjoiMCIsImNpZCI6ImVhODhhYWFmMmFkMjYwYzEiLCJhYXQiOjE0NzMzMTk4MDF9.ZrC0weALCz7QbUHFslJZD7L16k_ciFSCNY-q29h99x70qNrpB5e71KYrD18FTZ-3tI8Ck37_91yMHleQZvEziyEq5-t9EOaGM32RiF0iwnKZcbkOkvgqofWmcGdPT63HEyjWBHg3e_NLIE-RnDob4vMCQrHTkqmuQq6cVaIDkjke1Yi4xjONUNIB9QpWmpuRju0Kxi7oIJqiHWQK',
'Content-Type': 'application/json'
},
body: {
"type": "message/text",
"text": "Hi! (wave)"
}
}
But got error:
但得到了错误:
{ status: { code: 40499, text: 'No handler found for resource' } }
How to get conversationId?
如何获得对话?
1 个解决方案
#1
0
You are addressing different domain. url should be https://apis.skype.com/v3....
您正在寻址不同的域名。网址应为https://apis.skype.com/v3 ....
#1
0
You are addressing different domain. url should be https://apis.skype.com/v3....
您正在寻址不同的域名。网址应为https://apis.skype.com/v3 ....