Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Alteryx API call with "Content-Type application/x-www-form-urlencoded"

FkeetGuy
7 - Meteor

Hi Team,

 

I haven't come accross this before, and I use API's a lot.

 

I've got a call I can make work in Postman. it returns the authentication key I need for the next call.

 

I normally use postman to see what the cURL format is.

But I don't understand how to recreate the format for the following

 

curl --location --request GET 'https://*******************/v2/user/authenticate' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'username=data@**********' \
--data-urlencode 'password=********************' \
--data-urlencode 'grant_type=password'
 
Firstly, it's odd that's it's a GET but not unheard of.
 
If this was json or raw I wouldn't have an issue - but I really have no idea how to I'm supposed to format this to push it up so it responds as it should
1 REPLY 1
FkeetGuy
7 - Meteor

ok I figured it out, not 2 minutes after I posted this - but maybe it'll help someone in the future.

 

In the Payload I changed to Custom and then entered GET for the HTTP action.

 

Labels
Top Solution Authors