get method
Implementation
@override
Future get(String path, [String? apiKey]) async {
final response = await _dio.get(
path,
options: apiKey != null
? Options(
headers: {
'authorization':
'Basic ${base64Encode(utf8.encode('$apiKey:'))}',
},
)
: null,
);
return response.data;
}