RequestOptions
Esta página aún no está disponible en tu idioma.
Options of one call: the last argument of every method.
interface RequestOptionsProperties
Section titled “Properties”idempotencyKeystring | undefinedOpcionalIdempotency-Key for this POST (default: a random UUID, reused across this call's retries).
timeoutMsnumber | undefinedOpcionalOverrides the client's timeout for this call.
maxRetriesnumber | undefinedOpcionalOverrides the client's maxRetries for this call.
apiVersionstring | undefinedOpcionalOverrides the client's TYS-Version for this call.
headersRecord<string, string> | undefinedOpcionalExtra request headers.
signalAbortSignal | undefinedOpcionalAborts the call (not retried).
Example
Section titled “Example”await tys.orders.create(order, { idempotencyKey: `order-${order.id}`, timeoutMs: 10_000 });tys.orders.create(order, idempotency_key=f"order-{order['id']}")See also
Section titled “See also”¿Te ha resultado útil esta página?
Gracias. Leemos todas las respuestas.