testFilesIntegration method

Future<Object?> testFilesIntegration({
  1. Map<String, Object?>? query,
  2. Object? body,
  3. Map<String, String>? headers,
})

POST /{version}/files/integrations/test

Tries the credentials of a files integration against the storage provider and answers whether they work. Nothing is saved — call it before saveFilesIntegration to tell a bad key from a bad bucket.

Implementation

Future<Object?> testFilesIntegration(
    {Map<String, Object?>? query,
    Object? body,
    Map<String, String>? headers}) {
  return transport.send(
    route: '/{version}/files/integrations/test',
    method: 'POST',
    query: query,
    body: body,
    headers: headers,
    pathParams: null,
  );
}