Authentifizierung erforderlichExplorer+
client.favorites.add()
Favourite a firearm. Idempotent: favouriting twice is one favourite.
add(firearmId: string): Promise<APIResponse<FavoriteToggle>>- stringHeadererforderlich
Ihr API-Schlüssel.
Authorization: Bearer <key>wird ebenfalls akzeptiert.
- stringerforderlich
Firearm slug
- Beispiel
- object
The response payload.
- boolean
Always true: the firearm is in your favorites once this returns.
- string
Slug of the firearm this row belongs to.
- 400
VALIDATION_ERROR - 401
UNAUTHORIZED - 403
FORBIDDEN - 404
NOT_FOUND - 429
RATE_LIMITED - 500
INTERNAL_ERROR
- Mindeststufe
- Explorer+
- Monatskontingent
- 200/mo
- Anfragerate
- 10/min
- Tageslimit
- 50
Die Werte gelten für die Mindeststufe dieses Endpunkts. Höhere Stufen erhöhen alle Limits.