User data

To obtain data about yourself, the user, you can utilize the User class. The way this class is designed ensures your IDE will hint you user attributes.

For now, you can only read user data, not edit them.

Say we’ve already authenticated.

[1]:
from dynacrop import User
[2]:
me = User()

print(f"""
My ID: {me.id}
Number of polygons: {me.polygon_count}
Max call per minute: {me.max_calls_per_minute}
""")

My ID: 1
Number of polygons: 2970
Max call per minute: 60