Response object from RemoteServiceModule API requests.
Example
// RemoteApiResponse is received in the callback of performApiRequest(). // It has a protected constructor — you never instantiate it directly. // // Properties (all readonly): // body: Editor.Buffer — response body data // linkedResources: RemoteApiResponse.LinkedResource[] — linked resource URLs // statusCode: number — HTTP status code
// linkedResources: array of LinkedResource objects console.log('linkedResources count:', response.linkedResources.length); for (constresourceofresponse.linkedResources) { console.log('linked resource url:', resource.url); } });
console.log('RemoteApiResponse is received via performApiRequest callback.'); console.log('Properties: body (Buffer), linkedResources (LinkedResource[]), statusCode (number) — all readonly.');
Response object from RemoteServiceModule API requests.
Example