Comments (6)
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.
I have a similar problem, the body of the httpPost action is empty.
from pymsteams.
If it is not possible to call an authenticated POST API then it is quite useless.
from pymsteams.
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.
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.
Resolved in #103
from pymsteams.
Related Issues (20)
- HttpPost Basic Auth. HOT 6
- Non-http link buttons don't show HOT 2
- [Question] Delete message generator by Incoming Webhook HOT 1
- pymsteams async_connectorcard Python 2 incompatibility HOT 4
- Add tags to connectorcard HOT 7
- Help needed HOT 1
- 0.2.1 issue with last_http_status HOT 2
- Adding Text to Card does not work if PotentialAction or CardSection is added prior
- How to add mension in text HOT 2
- Pinning requirements HOT 3
- TeamsWebhookException despite successful POST HOT 6
- Adaptive card is not rendered on android phone HOT 1
- HTML tables stopped working HOT 4
- "==" not sent properly HOT 1
- proxy params is changed for httpx HOT 1
- Handling MS Teams Rate Limit Request Failures HOT 1
- !important (Notification)
- Ongoing Support and Request for Maintainers HOT 6
- .color() not working HOT 2
- SetuptoolsDeprecationWarning: use of dashes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymsteams.