Alteryx Server Discussions

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

General Discussions has some can't miss conversations going on right now! From conversations about automation to sharing your favorite Alteryx memes, there's something for everyone. Make it part of your community routine!

SOLVED

Alteryx Gallery API call from Python

yashwanth95
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.

 

fmvizcaino
16 - Nebula
16 - Nebula

Hi @yashwanth95 ,

 

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

yashwanth95
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