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(AtOnboardingConstants.apiEndPoint,
'${AtOnboardingConstants.apiPath}${AtOnboardingConstants.getFreeAtsign}');
Response response = await _http.get(
url,
headers: <String, String>{
'Authorization': AtOnboardingConstants.apiKey!,
'Content-Type': 'application/json',
},
);
return response;
}