Croct
Learn how to create the SDK.
The entry point to the SDK, implementing the Plug interface. An instance exposes every operation alongside the static factories below.
Type against the interface
Prefer the Plug interface to Croct in your type hints. Coding against the interface keeps your code decoupled from the SDK and easy to test.
Looking for something specific?
Use the search bar at the top of the page or press / to quickly search through the documentation.
Use the summary below to quickly jump to a specific topic:
| Page | Description |
|---|---|
| plug | Learn how to create and configure the SDK. |
| fromEnvironment | Learn how to create the SDK from environment variables. |
| fromDotenv | Learn how to create the SDK from a .env file. |
| emitCookies | Learn how to write the session cookies to the response. |