pypresscart
  • PyPI
  • Source
  • API
/

Get started

  • Installation
  • Getting Started
  • Authentication and Scopes

Core concepts

  • Client Configuration
  • Dual-Mode I/O
  • Error Handling
  • Pagination
  • Retry and Timeouts

Resources

  • Auth
  • Outlets
  • Products
  • Orders
  • Order Items
  • Profiles
  • Campaigns
  • Articles
  • Files
  • Folders

Reference

  • API Reference
    • pypresscart.client
    • pypresscart.exceptions
    • pypresscart.models
      • pypresscart.models.articles
      • pypresscart.models.auth
      • pypresscart.models.campaigns
      • pypresscart.models.files
      • pypresscart.models.folders
      • pypresscart.models.order_items
      • pypresscart.models.orders
      • pypresscart.models.outlets
      • pypresscart.models.products
      • pypresscart.models.profiles
    • pypresscart.resources
      • pypresscart.resources.articles
      • pypresscart.resources.auth
      • pypresscart.resources.campaigns
      • pypresscart.resources.files
      • pypresscart.resources.folders
      • pypresscart.resources.order_items
      • pypresscart.resources.orders
      • pypresscart.resources.outlets
      • pypresscart.resources.products
      • pypresscart.resources.profiles
  • Models Reference
  • Recipes
  • Testing status
  • Contributing
  • Changelog

On this page

  • AuthResource
    • whoami()
py-presscart 0 0
Edit this page
  1. pypresscart /
  2. API Reference /
  3. pypresscart.resources /
  4. pypresscart.resources.auth
View Source Open in ChatGPT Open in Claude

pypresscart.resources.auth¶

Auth resource: GET /auth/token.

Classes

AuthResource(client)

Authentication endpoints.

class pypresscart.resources.auth.AuthResource(client)[source]¶

Bases: ResourceBase

Authentication endpoints.

Parameters:

client (PresscartClient)

whoami(*, as_json=None)[source]¶

Verify the current API token. Required scope: any valid token.

See: https://docs.presscart.com/getting-started/authentication

Parameters:

as_json (bool | None)

Return type:

TokenInfo | dict[str, Any]

Previous
pypresscart.resources.articles
Next
pypresscart.resources.campaigns

2026, pypresscart contributors

Made with Sphinx and Shibuya theme.