zabirauf / ex_microsoftbot Goto Github PK
View Code? Open in Web Editor NEWElixir client for Microsoft bot framework
License: MIT License
Elixir client for Microsoft bot framework
License: MIT License
Can you publish v1.0.0 to Hex? I'll prepare PR to update phoenix_microsoftbot
Currently the models have a respective parse function which return different types based on if its binary data or if its a map. It would be nice to make them consistent.
Please see the conversation related to it in older PR #18
Hi,
Thanks for making this library 👍
ex_microsoftbot 0.1.0
requires httpotion ~> 2.2
. The problem is, this version of httpotion does not compile on Elixir 1.3. I'm getting this error when I try: valpackett/httpotion#90
Would you be able to update the dependency? I'm really just toying around with this library, not depending on it, so it's not a big deal but I though I'd open an issue so you know.
Thanks,
Justin
Currently, this library only supports communicating with a single bot, as the app id / password come from the application config. What would it take to make it multi tenant, e.g. to make it possible to manage multiple bots?
Two in particular that I've pinned down:
%{
"type" => "clientInfo",
"country" => "US",
"locale" => "en-US",
"platform" => "Linux",
"timezone" => "Europe/Lisbon"
}
%{
"type" => "mention",
"mentioned" => %{"id" => "aaf330ae-4b72-41a5-ad18-c92d8711eb08", "name" => "John Doe"},
"text" => "<at>John Doe</at>"
}
Is ex_microsoftbot currently compatible with the authentication changes made for botV3.5? Just wondering since the botframework web site claims bots won't work after 07/31/2017 if not compatible.
https://blog.botframework.com/2017/05/07/Bot-Framework-Auth-Change/
https://docs.microsoft.com/en-us/bot-framework/rest-api/bot-framework-rest-connector-authentication
Also, thanks for the very useful module.
%HTTPotion.Response{
body: "[{\"id\":\"29:1xvb6t3WiJus78eoMX7J0rJAP4aCrjaUQpuBumUgMBqOIziPGiB6A0SnkW3kvT-jUpEU6YfbsF64YGT3TaZ30-Q\",\"objectId\":\"5aa7c55e-caea-4cf2-b21a-eea6c4c431fb\",\"name\":\"João\",\"email\":\"[email protected]\",\"userPrincipalName\":\"----_gmail.com#EXT#@Skoach.onmicrosoft.com\",\"tenantId\":\"66666666-a478-46b6-bdbe-d1028121f648\"}]",
headers: %HTTPotion.Headers{hdrs: %{"content-length" => "322", "content-type" => "application/json; charset=utf-8", "date" => "Thu, 16 May 2019 08:51:38 GMT", "server" => "Microsoft-HTTPAPI/2.0"}},
status_code: 200
}
# Decodes to:
{:ok,
[
%ExMicrosoftBot.Models.ChannelAccount{
id: "29:1xvb6t3WiJus78eoMX7J0rJAP4aCrjaUQpuBumUgMBqOIziPGiB6A0SnkW3kvT-jUpEU6YfbsF64YGT3TaZ30-Q",
name: "João"
}
]}
The ChannelAccount
object can contain more info than what's decoded, depends on the channel where it's called on. The above example is from Microsoft Teams.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.