Types
GumroadApiResponseEarnings = object success*: bool year*: int currency*: string gross_cents*: int fees_cents*: int taxes_cents*: int affiliate_credit_cents*: int net_cents*: int
Procs
proc getEarnings(client: GumroadClient; year: int): Future[ GumroadApiResponseEarnings] {....stackTrace: false, raises: [Exception, ValueError, GumroadClientError, KeyError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, JsonParsingError, OpenParserJsonError], tags: [RootEffect, ReadIOEffect, TimeEffect, WriteIOEffect], forbids: [].}
- Retrieves an annual earnings breakdown for the authenticated user. Requires the 'view_tax_data' scope.