We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Foresee Oauth 2.0

IbrahimAhmed
6 - Meteoroid

Hi All, 

 

I am quite new to Alteryx and am looking to use the download tool to access the foresee API which uses the Oauth 2.0 protocol.

 

Here is a link to the instructions provided by foresee

 

https://developer.foresee.com/docs/oauth2-client-credentials-flow

 

I have written a flow  using these 3 items to feed the download tool

URL:

"https://api.foresee.com/v1/token?grant_type=client_credentials&scope=r_cx_basic"

Key

"Basic {Key}:"

Secret

"{Secret}"

 

I am using the URL in the basics tab on the download tool 

and in the headers and using the Key and Secret fields.

 

and in payload using the POST option.. however i keep getting the below error:

 

 

{"timestamp":"2018-04-27T07:49:49.524+0000","status":401,"error":"Unauthorized","message":"Full authentication is required to access this resource","path":"/oauth2-server/oauth/token"}

 

 

Any help would be massively appreciated

5 REPLIES 5
BenMoss
ACE Emeritus
ACE Emeritus

Check out this tool: https://gallery.alteryx.com/#!app/Twitter-Search/574db168a248970bdc36d527

 

It itself uses OAuth2 (twitters version of course), and Alteryx have built a nice little oauth2 macro inside the twitter macro, so you can take a look at that and it may give you some pointers on how to achieve what you want to achieve.

 

Ben

IbrahimAhmed
6 - Meteoroid

Thanks Ben!!

 

I will have a crack through that now. 

abhishekgm
5 - Atom

Hi Ben, When I try to click the link you have posted I get below message. Can you please share the workflow, where I can access it. 

Sorry, you don't have access to this workflow.

!

This workflow is not shared with you via a collection.

karthik88
5 - Atom

@BenMoss wrote:

Check out this tool: https://gallery.alteryx.com/#!app/Twitter-Search/574db168a248970bdc36d527

 

It itself uses OAuth2 (twitters version of course), and Alteryx have built a nice little oauth2 macro inside the twitter macro, so you can take a look at that and it may give you some pointers on how to achieve what you want to achieve.

 

Ben



Hello Ben,

 

Could you provide me access to this workflow? I am working on retrieving data from an API and for that I would need to generate access tokens using the API key and the secret. Thanks!


cv123
5 - Atom

Hello Ben,

 

Could you please share this workflow with me? I am trying to pull data through an API connection but am running into the same error mentioned in the first post of this thread. Thank you!

Labels
Top Solution Authors