Closed Gregster66 closed 2 years ago
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
I have a similar problem, the body of the httpPost action is empty.
If it is not possible to call an authenticated POST API then it is quite useless.
jumping on this band wagon here... does anyone know how to add headers (so i can add an auth token) to the HttpPOST action?
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.
Resolved in #103
From the documentation I can see that we have the option to add action buttons which when clicked can then perform an HttpPOST. My questions are: