Hi Team,
I would like pass ID to API an get data. below are the details i received from API team.
Grant Type: Client Credentials
Access Token URL: https://123.com/apex/epex/oauth/token
Client ID: ..xxx..
Client Secret: ..yyy..
Client Authentication: Send as Basic Auth header
==ENDPOINT==
https://123.com/apex/epex/?parameter
where "parameter" is the ID to get data.
i have tried multiple option in download tool . but can not connect to API. can you please help
Thanks
Sha
to supplement further, here is how we are connecting from POSTMAN
Tried this option --> error : 401 - Unauthorized: Access is denied due to invalid credentials
to supplement further, here is how we are connecting from POSTMAN
@shareef2 I don't know postman that well, but you should be able to have it give you the curl request that is actually being sent. Postman is showing easier to read names like "Grant Type". In alteryx, I believe you would need that to be "grant_type". The curl from postman should give you everything you need. In looking at the items you're sending in alteryx, I would make these changes:
Change Client ID to client_id
Change Client Secret to client_secret
Change Grant Type to grant_type
Remove Token Name and Client Authentication (I don't think they're necessary but not sure).
The server should then respond with your access token. Then you would hit the actual endpoint (https://123.com/apex/epex/?parameter) and this time you would presumably have a field called "Authorization" and the value should be "Bearer your_token_from_step1" (so "Bearer aoeust23123eouaoue12" for example). You would no longer need to send the client id, secret, or grant_type.
Hope that helps!
@patrick_digan thnx. i will try these options next week and update you.
Thanks again for the details.
Hi, I tried these options:
the responce is :
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>401 - Unauthorized: Access is denied due to invalid credentials.</title>
but with same client_id & secret i can connect from postman.
is there any other way to send id/secret ?
POSTMAN log:
are you using the base-64 encoder? Postman does this for you - with Alteryx you need to encode your client id/client secret yourself via the base 64 encoder tool. For a test run - take what you have in postman and recreate it EXACTLY in Alteryx. It should work - if not you haven't recreated it exactly. Make sure you hard code your content-type etc...
Tried same options as postman: same error
@shareef2 Which endpoint are you having errors with (https://123.com/apex/epex/oauth/token or https://123.com/apex/epex/?parameter). You mentioned both in your initial post.
User | Count |
---|---|
52 | |
27 | |
25 | |
24 | |
21 |