url=‘https://app.asana.com/api/1.0/tasks’
headers={‘Authorization’: ‘Bearer token’, ‘Content-Type’: ‘application/json’}
params = {‘project’: ‘gid of project’}
data = {}
r = requests.get(url, params = params,json = data, headers=headers)
I get an answer:
{‘data’: [{‘gid’: ‘1147855851142160’,
‘name’: ‘my_task_01’,
‘resource_type’: ‘task’},
But the next time you run the script, the gid for the task changes.
{‘data’: [{‘gid’: ‘1147855851142162’,
‘name’: ‘my_task_01’,
‘resource_type’: ‘task’},
Why isn’t the gid static?