syncDevice method
Future<DynamiteResponse<SyncDeviceResponseApplicationJson, void> >
syncDevice({
- required String deviceId,
Request to get push messages.
This is a public page since it has to be handle by the non-connected app (NextPush app and not Nextcloud-app).
Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.
Status codes:
- 401: Missing permissions to sync device
See:
- syncDeviceRaw for an experimental operation that returns a DynamiteRawResponse that can be serialized.
Implementation
Future<DynamiteResponse<SyncDeviceResponseApplicationJson, void>> syncDevice({required String deviceId}) async {
final rawResponse = syncDeviceRaw(
deviceId: deviceId,
);
return rawResponse.future;
}