Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.
SOLVED

Alteryx Gallery API call from Python

yashwanth1995
6 - Meteoroid

I'm trying to call Alteryx Gallery REST API from python. For this I had gone through 'https://gallery.alteryx.com/api-docs/#subscription' selected the endpoint /api/v1/workflows/subscription/ and got the request URL. Copied the URL and pasted in Postman with key and secret got from 'Keys' section in user profile and I can get the response with OAuth1.0. Now I'm trying to do the same with python, unfortunately I'm getting error with (401,
'{"data":null,"exceptionName":"UnauthorizedException","innerExceptionMessage":"","message":"The provided signature(oauth_signature) is invalid."}').

 

I hope the error is with creating signature. Can you please check and help me to fix the error. I had attached my python script as well.

 

3 REPLIES 3
fmvizcaino
17 - Castor
17 - Castor

Hi @yashwanth1995 ,

 

I'm not a python developer, so it would be hard to help you debug your script, but check this out and see if it helps you.

https://github.com/Theamazingdp/AlteryxGalleryAPI

 

 

Best,

Fernando Vizcaino

yashwanth1995
6 - Meteoroid

Thanks Fernando for your inputs. I had gone through below link as well and fixed the issue.

https://community.alteryx.com/t5/Dev-Space/Python-library-for-Alteryx-Gallery-API/td-p/191018

priya_mohana_dhl
7 - Meteor

I tried the interactive api in the alteryx server, copied the request and tried to run it in postman. 

 

Getting 401:UnAthorized error

{
    "data"null,
    "exceptionName""UnauthorizedException",
    "innerExceptionMessage""",
    "message""Duplicate nonce found."
}
 
How to call it in Postman? How to use OAuth signing process to generate oauth_ parameters?
 
Thanks.