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.
Hi,
How are you currently generating the token manually?
Thanks,
Chris
Hi Chris,
Yes
Hi,
How are you doing it?
Thanks,
Chris
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