getCalendarCapabilitiesWithHttpInfo method

Future<Response> getCalendarCapabilitiesWithHttpInfo(
  1. String accountId
)

Per-account capability flags.

Returns the capabilities the provider declares for the given connected account. The renderer uses these to enable/disable form fields (recurrence picker, attendee inputs, etc.).

Note: This method returns the HTTP Response.

Parameters:

  • String accountId (required): Connected-account id (snake_case in this platform — the rest of the SpatioAPI uses accountId). Required for single-event operations.

Implementation

Future<Response> getCalendarCapabilitiesWithHttpInfo(String accountId,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/calendar/capabilities';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

    queryParams.addAll(_queryParams('', 'account_id', accountId));

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}