GithubHelp home page GithubHelp logo

zabirauf / ex_microsoftbot Goto Github PK

View Code? Open in Web Editor NEW
34.0 34.0 17.0 124 KB

Elixir client for Microsoft bot framework

License: MIT License

Elixir 100.00%
bot-framework elixir-client microsoft-bot-framework

ex_microsoftbot's People

Contributors

deybhayden avatar fooqri avatar gfrivolt avatar hauntedhost avatar jmnsf avatar zabirauf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ex_microsoftbot's Issues

Make the parsing function of models consistent

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

Multi tenancy?

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?

Entities in Activity don't deserialize correctly

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>"
}

1.0.0 release

Can you publish v1.0.0 to Hex? I'll prepare PR to update phoenix_microsoftbot

Not decoding full info on the `get_members` call

%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.

Incompatible with Elixir 1.3

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.