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.

Building OAuth certificate for Alteryx Server API

Matteop9
8 - Asteroid

Hello

 

I am trying to play around the with the API functionality to kick off a workflow on server. Specifically the subscription API.

 

Using the interactive documentation I can get it working, and I am aware that I need to build the oauth certification when I try to use Alteryx to make these calls.

 

Everything I try it says the certification is invalid.

 

I have tried using the macros here:

https://github.com/TheInformationLab/alteryx-api-tools

https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-Run-a-Job-Using-Alteryx-Server-AP...

 

Any help on how anyone else might already do it would be much appreciated.

5 REPLIES 5
patrick_digan
17 - Castor
17 - Castor

@Matteop9 I would give my api runner a try or this macro that  @rachel_dunlavy from alteryx posted to the gallery. If either of those doesn't resolve the issue, any code or screenshots would be helpful and the community can try to help you debug. The oauth is very particular (including casing, order). This post from a few years ago may be helpful (I'm biased), especially this section:

patrick_digan_0-1647262594191.png

 

Thableaus
17 - Castor
17 - Castor

Hi @Matteop9 

 

I also created a Python-based macro to generate the URL request and the Authorization headers with the correct signature.

 

https://community.alteryx.com/t5/Public-Community-Gallery/OAuth-1-0-Signature-Generator/ta-p/913479

 

Feel free to test it.

 

Cheers,

Matteop9
8 - Asteroid

Hi @patrick_digan, thanks for the suggestions.

 

Using your API runner I get to the same issue unfortunately.

Matteop9_0-1647268019957.png

I have updated the URL to my gallery URL, added my key and secret (The same ones that work in the interactive documentation) but to no avail, tried both python and R and selecting de selecting all of the options.

 

There isn't much else I can share on this issue as I am just adding my credentials to an existing workflow.

Matteop9
8 - Asteroid

Hi @Thableaus 

 

Thanks for the tool.

 

I seem to be missing some tools from the macro?

 

Matteop9_0-1647268278560.png

 

Thableaus
17 - Castor
17 - Castor

@Matteop9 

 

Could you please try to download it again? I put the whole .yxzp file with all dependencies now, sorry for that.