Asana / python-asana

Official Python client library for the Asana API v1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ASANA API update on new "gid" field

kittylon opened this issue · comments

Hello,

Since asana is migrating all float "id" to string "gid" fields for all resources, I am wondering if there are any plans to use the new field in this project?

Thanks!

Hey @kittylon,

Since our client libraries are pretty thin wrappers around the JSON that gets returned from our API, new fields that get added are inherently backwards-compatible. You should start to see that the dictionary that is returned from our API with id fields will now also have a gid field as well.

If you want to see what the future behavior of our API will be after the change is fully made you can take a look at our docs on this change to see how you can select the future behavior with a header. You can see how to do this in a test in the client library by passing a headers keyword argument.

Did you have any other specific question about modifications you'd like to see in the client library due to this change?