getAccessToken static method
Implementation
static Future<void> getAccessToken() async {
final url = Uri.parse(
'https://sadad.de/sadadSDKTestConfig/index.php',
);
Map<String, String> header = {'Content-Type': 'application/json'};
var result = await http.post(
url,
headers: header,
);
if (result.statusCode == 200) {
var token = '${jsonDecode(result.body)}';
print('notification count:::${token}');
}
}