Python code to generate access token for Nestsuite REST API.
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.