Python code to generate access token for Nestsuite REST API.

Hi,

I am trying to fetch project data from Netsuite using REST API. I am able to achieve this via postman as well as the python script. I am using Oauth 2.0 for authorization

The only challenge that I am facing is to manually refresh the access token every hour. I am not able to find any postman collection or preferrably python code to generate the access token so that it becomes automated.

Can anybody help me with the code?

I have the consumer key, consumer secret, token id and secret as well as the account name.

Thanks in advance.

Rookie Asked on June 7, 2023 in Projects.
Add Comment
1 Answer(s)

Hi,

How are you currently generating the token manually?

Thanks,

Chris

Advanced Answered on June 8, 2023.

Hi Chris,

Yes

on June 8, 2023.

Hi,

How are you doing it?

Thanks,

Chris

on June 8, 2023.

Hi,

By logging into Netsuite and then generating it. This practice I did the first time, post that I am just refreshing the token.

 

Thanks,

Kompal

on June 12, 2023.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Become a Sponsor   Become a Sponsor