getAccessToken static method

Future<void> getAccessToken()

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)}';
  }
}