Adobe Analytics 2.0 API best practice for access token

Avatar

Avatar
Validate 10
Level 4
alv123456
Level 4

Likes

71 likes

Total Posts

118 posts

Correct reply

4 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 4
alv123456
Level 4

Likes

71 likes

Total Posts

118 posts

Correct reply

4 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
alv123456
Level 4

13-08-2019

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Shape 1
Level 2
Saumya-In
Level 2

Likes

9 likes

Total Posts

44 posts

Correct reply

6 solutions
Top badges earned
Shape 1
Boost 5
Boost 3
Boost 1
Affirm 5
View profile

Avatar
Shape 1
Level 2
Saumya-In
Level 2

Likes

9 likes

Total Posts

44 posts

Correct reply

6 solutions
Top badges earned
Shape 1
Boost 5
Boost 3
Boost 1
Affirm 5
View profile
Saumya-In
Level 2

21-07-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