tys.lastResponse
Esta página aún no está disponible en tu idioma.
Meta of the last answered request (success or API error).
lastResponse: ResponseMeta | undefined;Properties
Section titled “Properties”methodstringObligatoriopathstringObligatoriostatusnumberObligatoriorequestIdstring | undefinedObligatorioapiVersionstring | undefinedObligatorioTYS-Version the API answered with.
idempotentReplayedbooleanObligatorioTrue when the answer is a stored idempotent replay.
idempotencyKeystring | undefinedObligatoriorateLimitRateLimitObligatorioPropiedades
limitnumber | undefinedObligatorioremainingnumber | undefinedObligatorioresetnumber | undefinedObligatorioUnix seconds when the window resets (as sent by the API).
headersHeadersObligatorioExample
Section titled “Example”await tys.products.list();console.log(tys.lastResponse?.requestId, tys.lastResponse?.rateLimit.remaining);¿Te ha resultado útil esta página?
Gracias. Leemos todas las respuestas.