getFavoritesByIdUsersCheckWithHttpInfo method

Future<Response> getFavoritesByIdUsersCheckWithHttpInfo(
  1. String companyId,
  2. String userId,
  3. String assetId
)

Check if the specified user has favorited a specific asset

Note: This method returns the HTTP Response.

Parameters:

  • String companyId (required): Unique identifier for the Company

  • String userId (required): Unique identifier for the User

  • String assetId (required): Unique identifier for the Asset

Implementation

Future<Response> getFavoritesByIdUsersCheckWithHttpInfo(String companyId, String userId, String assetId,) async {
  // ignore: prefer_const_declarations
  final path = r'/companies/{company_id}/users/{user_id}/favorites/check/{asset_id}'
    .replaceAll('{company_id}', companyId)
    .replaceAll('{user_id}', userId)
    .replaceAll('{asset_id}', assetId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  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,
  );
}