OAuth Server-to-Server Access Token to Call Campaign Classic API | Community
Skip to main content
Level 2
December 20, 2023
Solved

OAuth Server-to-Server Access Token to Call Campaign Classic API

  • December 20, 2023
  • 3 replies
  • 2749 views

Hey all,

 

I am creating a web application (Node.js) that needs to call some API endpoints in Adobe Campaign Classic SOAP API v8.

I have created a project in the developer console and added an integration to our v8 stage instance (see screenshot below)

 

I couldn't find in the documentation any resource that explains how to use the generated access token to call v8 SOAP API. All the examples that I found are using a username/password to generate a session token.

Can you help? maybe an article or a tutorial that I can follow?

 

Thank you

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by isahore

Hi @hamido41487803,

 

As per Adobe Campaign documentation for v8, the generated access token has to be passed in the "Authorization" header. It is also given in the example here:

https://experienceleague.adobe.com/docs/campaign/technotes-ac/tn-new/ims-migration.html?lang=en#ims-migration-step-8

 

Use of sessiontoken will be deprecated from version 8.6 onwards, and the token based authentication is available from version 8.5.2 onwards.

 

Let us know if that helped.

 

Regards,

Ishan

3 replies

Marcel_Szimonisz
Community Advisor
Community Advisor
December 21, 2023

Hello @hamido41487803 ,
I humbly think that OAuth is not used with adobe campaign classic as it is used mostly for REST aplications. You need to generate session token as per your found examples with SOAP requests.

I have found this article about plan to migrate to OAuth
https://helpx.adobe.com/enterprise/kb/migrating-to-oauth-server-to-server-credentials.html

npm package perhaps might be useful:
https://opensource.adobe.com/acc-js-sdk/


Marcel

isahore
Community Advisor
isahoreCommunity AdvisorAccepted solution
Community Advisor
January 4, 2024

Hi @hamido41487803,

 

As per Adobe Campaign documentation for v8, the generated access token has to be passed in the "Authorization" header. It is also given in the example here:

https://experienceleague.adobe.com/docs/campaign/technotes-ac/tn-new/ims-migration.html?lang=en#ims-migration-step-8

 

Use of sessiontoken will be deprecated from version 8.6 onwards, and the token based authentication is available from version 8.5.2 onwards.

 

Let us know if that helped.

 

Regards,

Ishan

Sukrity_Wadhwa
Community Manager
Community Manager
January 10, 2024

Hi @hamido41487803,

Were you able to resolve this query with the help of the given solutions or do you still need more help here? Do let us know. In case the given solutions were helpful, then kindly choose the one that helped you the most as the 'Correct Reply'.
Thanks!

Sukrity Wadhwa
Level 2
November 22, 2024

Hi @sukrity_wadhwa,
Sorry for the late reply, yes I was able to solve the issue.

Thank you @isahore for the help,

 

Hamid

Sukrity_Wadhwa
Community Manager
Community Manager
November 22, 2024

Thanks for sharing that @hamido41487803!

Sukrity Wadhwa