Replies: 1 comment
-
You can't use environment variables in python, you may need to define them elsewhere. # Token
TOKEN="Bearer abc1234"
PAYLOAD='{"template_id": 16}'
URL=form://10.0.0.2:3004/api/project/1/tasks?+Authorization=$TOKEN&:app=$PAYLOAD
Another thing you could consider is that the quotes ( Hence:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
I recently found out that it's possible to use form:// and sent a payload to an API.
However, I have tried and do this but I keep failing and perhaps someone can point me in the right direction.
form://10.0.0.2:3004/api/project/1/tasks?+'Authorization: Bearer'=TOKEN&:app={"template_id": 16}
As I keep getting response:
Failed to send Form POST notification: Verification Failed., error=401
, it isn't passing the auth.Any clue?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions