koalalorenzo / python-digitalocean

🐍🐳 Python module to manage Digital Ocean droplets
GNU Lesser General Public License v3.0
1.26k stars 301 forks source link

the API v2 does not seem to provide account name aka team name aka user name. Can advise? #328

Closed simkimsia closed 2 years ago

simkimsia commented 3 years ago

I'm looking at this https://developers.digitalocean.com/documentation/v2/#account

but i realize that other than uuid and email, there's no other attribute to tell us the name of the account.

I understand that DO now has personal and team accounts and it's entirely possible to create a team account to use the same email as the personal account.

How will my users understand which account they connect to? Is there a way to get the account name? I know it's displayed on the DO website.

And I know that this is probably a question best directed at DO themselves. I already fired a support ticket to ask them. but was wondering if you have any good ideas how to work around this?