getFreeAtsigns method
To get free @sign from the server
Implementation
Future<dynamic> getFreeAtsigns() async {
// if init was not called earlier, call here to initialize the http
if (!initialized) {
_init();
}
Uri url = Uri.https(AppConstants.apiEndPoint,
'${AppConstants.apiPath}${AppConstants.getFreeAtsign}');
Response response = await _http.get(
url,
headers: <String, String>{
'Authorization': AppConstants.apiKey!,
'Content-Type': 'application/json',
},
);
return response;
}