SDK reference
Esta página aún no está disponible en tu idioma.
One page per public method, component and event, generated from each SDK’s source code. Examples come in tabs; pick your language once (header switcher or any tab) and every page follows it. The HTTP endpoints are in the HTTP API reference, generated from our OpenAPI spec.
Web SDK@tryyoursize/sdk · TryYourSize.js for any storefront: the client, elements, events and web components.
React@tryyoursize/react · A provider, hooks and element components for TryYourSize.js, shaped like @stripe/react-stripe-js.
Node.js@tryyoursize/node · The server SDK for Node.js 18+: recommendations, catalog, orders and returns, audit log, webhooks.
Pythontryyoursize · The server SDK for Python 3.9+, standard library only: recommendations, catalog, orders and returns, audit log, webhooks.
iOSTryYourSize (Swift) · The native Size guide button (SwiftUI and UIKit), the shopper's recommended size, and the TryYourSize window in a sheet.
Androidcom.tryyoursize:tryyoursize-android · The native Size guide button (Compose and Views), the shopper's recommended size, and the TryYourSize window.
React Native@tryyoursize/react-native · The native Size guide button and the shopper's recommended size in React Native, over the iOS and Android SDKs.
Fluttertryyoursize (Dart) · The native Size guide button and the shopper's recommended size in Flutter, over the iOS and Android SDKs.
Browser and apps, or server?
Section titled “Browser and apps, or server?”| Where it runs | Key | SDKs |
|---|---|---|
| Your storefront (browser) | Publishable pk_… |
Web SDK, React |
| Your apps | Publishable pk_… |
iOS, Android, React Native, Flutter |
| Your server | Secret sk_… or restricted rk_… |
Node.js, Python |
Error codes: web SDK errors, mobile SDK errors, API errors.
¿Te ha resultado útil esta página?
Gracias. Leemos todas las respuestas.