getOrgUsers method
Implementation
Future<Response> getOrgUsers(
String reportingToken, String orgUniqueKey) async {
try {
_dio.options.headers.addAll({'Authorization': 'Bearer $reportingToken'});
final response = await _dio.get(
QuashConstants.baseUrl + QuashConstants.usersEndPoint,
queryParameters: <String, String>{'orgUniqueKey': orgUniqueKey});
return response;
} on Exception catch (e) {
if (kDebugMode) {
debugPrint('Exception occurred while fetching org users: $e');
}
return Response(requestOptions: RequestOptions(path: ''), data: '');
}
}