snapit_sdk library

Classes

SnapIT
SnapITClient
SnapITTheme
Design tokens class to allow host apps (like Myntra or Souled Store) to customize the SDK's UI look & feel.

Exceptions / Errors

InsufficientCreditsException
Thrown when the user's credits are lower than the try-on credit cost (HTTP 501).
InvalidAPIKeyException
Thrown when the X-API-Key is invalid, missing, or revoked (HTTP 401).
NetworkException
Thrown when there is an underlying network/socket issue.
SnapITException
Base class for all SnapIT SDK exceptions.
UnauthorizedException
Thrown when the user ID does not match the key owner (HTTP 403).
UserNotFoundException
Thrown when the specified userId does not exist in the database (HTTP 404).