checkIfUserFollowsGroupResponse method

Future<Response> checkIfUserFollowsGroupResponse(
  1. String sessionToken,
  2. String groupId
)
inherited

Endpoint used: GET /user/follows/group/{id}

Simply check if the user identified by the current session sessionToken follows a Group with groupId or uuid and return a http response

Implementation

Future<http.Response> checkIfUserFollowsGroupResponse(
    String sessionToken, String groupId) async {
  final unencodedPath = '/user/follows/group/$groupId';
  final uri = 'https://$AUTHORITY$unencodedPath';
  var response = await http.get(Uri.parse(uri), headers: {
    HttpHeaders.contentTypeHeader: 'application/json',
    HttpHeaders.authorizationHeader: 'Bearer $sessionToken'
  });
  return response;
}