Adobe Analytics 2.0 API best practice for access token | Community
Skip to main content
Level 5
August 13, 2019
Solved

Adobe Analytics 2.0 API best practice for access token

  • August 13, 2019
  • 1 reply
  • 2432 views

Hi,

when I'm using the API I need to authenticate with a key and a secret, which I obtain from swagger ui (Swagger UI​). Since the token expires, how can I refresh it automatically? I need to run a cron job script which fetches data daily without the need to manually update the secrets every day.

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 saumyag24417044

Hi,

 

To get started with Analytics 2.0 APIs you must first decide whether your application will need an OAuth client or a JWT client.

A JWT client is best if you are creating an application that needs to programmatically authenticate calls to the Adobe Analytics APIs. A new JWT token can be generated whenever the old one is about to expire so your application can continue to make API calls.

 

Document reference: https://github.com/AdobeDocs/analytics-2.0-apis

 

Hope this helps!

 

Thanks,

Saumya

1 reply

saumyag24417044Accepted solution
Level 4
July 21, 2020

Hi,

 

To get started with Analytics 2.0 APIs you must first decide whether your application will need an OAuth client or a JWT client.

A JWT client is best if you are creating an application that needs to programmatically authenticate calls to the Adobe Analytics APIs. A new JWT token can be generated whenever the old one is about to expire so your application can continue to make API calls.

 

Document reference: https://github.com/AdobeDocs/analytics-2.0-apis

 

Hope this helps!

 

Thanks,

Saumya

Level 4
August 6, 2020
@ alv123456 - Just wanted to check if my response helped or if you have any further questions.