Ir al contenido

tys.lastResponse

Esta página aún no está disponible en tu idioma.

Property@tryyoursize/node

Meta of the last answered request (success or API error).

lastResponse: ResponseMeta | undefined;
methodstringObligatorio
pathstringObligatorio
statusnumberObligatorio
requestIdstring | undefinedObligatorio
apiVersionstring | undefinedObligatorio

TYS-Version the API answered with.

idempotentReplayedbooleanObligatorio

True when the answer is a stored idempotent replay.

idempotencyKeystring | undefinedObligatorio
rateLimitRateLimitObligatorio
Propiedades
limitnumber | undefinedObligatorio
remainingnumber | undefinedObligatorio
resetnumber | undefinedObligatorio

Unix seconds when the window resets (as sent by the API).

headersHeadersObligatorio
await tys.products.list();
console.log(tys.lastResponse?.requestId, tys.lastResponse?.rateLimit.remaining);

¿Te ha resultado útil esta página?