getPostsUsageWithHttpInfo method

Future<Response> getPostsUsageWithHttpInfo()

Get current usage of posts

Retrieve rounded off total no. of posts for this instance. Example: returns 4000 instead of 4321 ##### Permissions Must be authenticated. Minimum server version: 7.0

Note: This method returns the HTTP Response.

Implementation

Future<Response> getPostsUsageWithHttpInfo() async {
  // ignore: prefer_const_declarations
  final path = r'/usage/posts';

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];

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