Giter Site home page Giter Site logo

'body' for addAction about pymsteams HOT 6 CLOSED

rveachkc avatar rveachkc commented on August 20, 2024 4
'body' for addAction

from pymsteams.

Comments (6)

CaseGuide avatar CaseGuide commented on August 20, 2024

I have a related issue where I can't figure out how to pass an auth/API key from pymsteams so that when I make the POST.

It looks like this should be possible by passing header per the MS docs on HttpPOST, maybe just need to modify .addAction to pass kwargs or make a dedicated HttpPost action in /pymsteams/init.py

Possibly related: #44

from pymsteams.

mikebywater avatar mikebywater commented on August 20, 2024

I have a similar problem, the body of the httpPost action is empty.

from pymsteams.

buttnomaan9 avatar buttnomaan9 commented on August 20, 2024

If it is not possible to call an authenticated POST API then it is quite useless.

from pymsteams.

craigers521 avatar craigers521 commented on August 20, 2024

jumping on this band wagon here... does anyone know how to add headers (so i can add an auth token) to the HttpPOST action?

from pymsteams.

buttnomaan9 avatar buttnomaan9 commented on August 20, 2024

jumping on this band wagon here... does anyone know how to add headers (so i can add an auth token) to the HttpPOST action?

I tried to figure out this, in order to pass API key in the header but seems like it is not possible. This API is based on MessageCard type and not AdapterCard type, which supports headers. But note AdapterCard submit action is not supported with MS Teams.
In the end, I changed my API call from post to a pre-signed get API call. It served well for my use case as I do not need to pass API key any more, but your use case may be different.

from pymsteams.

rveachkc avatar rveachkc commented on August 20, 2024

Resolved in #103

from pymsteams.

Related Issues (20)

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.