Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!
SOLVED

Unsure Of User Credentials for Obtaining OAuth Token

Avatar

Level 1

I am attemtping to programmatically get report suite data using PHP. In order to do so, I need to authenticate using OAuth. According to this documentation page: https://marketing.adobe.com/developer/en_US/documentation/authentication/auth-client-credentials, step 4 says I need to request a token for authentication. I am just trying to use command line curl to test this. I am using

curl -i -v "https://api.omniture.com/token" -u '(username):(password)' -d "grant_type=client_credentials"

The response is always: "{"error":"invalid_client","error_description":"The client credentials are invalid"}"

I believe I am using the incorrect username and password, but unfortunately, I have no idea what these values should be. I tried the username and password of this Adobe ID account, the username and password of my Analytics login (which are totally different but linked), the username and password found in the Analytics Admin -> Company Settings -> Web Services page. None of these work.

My best guess is that I need to create an application in Dev Center and maybe that will give me a new username and password (because of course, who wouldn't want another one?) to get the token. But when I click Dev Center -> Applications -> Add, I see "Your Adobe Account does not have any organizations associated with it. You require at least one organization to create an application.". I have no idea what this means, nor what the value should be. Also, it doesn't give me the opportunity to enter an organization. If I try to click Create, I get the error "client_name is a required parameter". Again, I don't know where I could change this, nor what the value should be.

Does anyone have a clue as to what I need to do in order to obtain a token from "https://api.omniture.com/token"? Thanks for your help.

1 Accepted Solution

Avatar

Correct answer by
Level 1

Here's what I had to do to obtain valid credentials for getting a token.

Log into Analytics, and look to the top-right. If you see a blue button saying Join Marketing Cloud, click it. Link your account to an Adobe ID account (which is not the same as the account you use to log into Analytics/Omniture). This will enable you to log into Developer Connection (https://marketing.adobe.com/developer/en_US),  click Dev Center, click Applications, and click Add. SInce the accounts are now linked, you won't get the cryptic organization & client_name error messages. When you create the application, you will then click on the application in the list on the Applications page and see the ID and Secret you can use for the request to /token, which will then return a token for subsequent requests.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 1

Here's what I had to do to obtain valid credentials for getting a token.

Log into Analytics, and look to the top-right. If you see a blue button saying Join Marketing Cloud, click it. Link your account to an Adobe ID account (which is not the same as the account you use to log into Analytics/Omniture). This will enable you to log into Developer Connection (https://marketing.adobe.com/developer/en_US),  click Dev Center, click Applications, and click Add. SInce the accounts are now linked, you won't get the cryptic organization & client_name error messages. When you create the application, you will then click on the application in the list on the Applications page and see the ID and Secret you can use for the request to /token, which will then return a token for subsequent requests.