client.docs.getSample()
Get the sample the reference prints for an operation in one language, exactly as printed, with the result of the last run that checked it.
getSample(params: GetDocsSampleParams): Promise<APIResponse<DocsSamples>>- stringHeadererforderlich
Ihr API-Schlüssel.
Authorization: Bearer <key>wird ebenfalls akzeptiert.
- stringerforderlich
The operation's path: a documented template, a concrete path or a full URL.
- Max. Länge
- 300
- Beispiel
- string
The HTTP method. Needed only when the path answers more than one.
- Akzeptiert
- Beispiel
- stringerforderlich
curl,javascript(TypeScript withfetch),python(requests),unity,unreal,godot, orsdk-typescript/sdk-pythonfor the SDKs.- Akzeptiert
- Beispiel
- object
The response payload.
- string
HTTP method of the operation.
- string
Its documented path template.
- string
The lowest plan that may call it.
- string
The operation's page in the reference.
- string
The language asked for.
- string | null
How to fill in the key placeholder, or null for an operation that takes no key.
- object[]
One sample, or one per SDK method for an operation more than one method calls.
- string
What the sample is: the tab name, or the SDK call.
- string
The sample, exactly as the reference prints it.
- object | null
The last run that checked this sample, or null when none has.
- string | null
Anything to know before using it, such as why it is not executed, or null.
- 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.