To show information about the current user account, send a GET request to /v2/account
.
import os
from pydo import Client
client = Client(token=os.getenv("$DIGITALOCEAN_TOKEN"))
account_info = client.account.get()
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.