getTokenHistory method
Implementation
Future<dynamic> getTokenHistory(String snipeId) async {
if (_apiKey == null) {
throw ("API Key not initialized.");
}
if (_baseUrl == null) {
throw "Invalid API key";
} else {
try {
final apiService = _ApiService();
final response = await apiService.get(
url: _baseUrl ?? " ",
endpoint: "token-management/read-token-user-history",
headers: {"x-api-key": _apiKey!, "x-user-id": snipeId},
);
// print("GET token Response: $response");
return response;
} catch (error) {
rethrow;
}
}
}