Résolution problème API
continuous-integration/drone/push Build is passing Details

messagerie_lucas_test
Félix MIELCAREK 2 years ago
parent 70e367ebb6
commit 3d1ff99fb5

@ -58,14 +58,12 @@ class Api {
getCurrentlyPlayingTrack() async {
var url = Uri.https('api.spotify.com', 'v1/me/player/currently-playing');
print('$token_type $access_token');
var response = await client.post(url, headers: <String, String>{
var response = await client.get(url, headers: <String, String>{
'Authorization': '$token_type $access_token',
'Content-Type': 'application/json'
});
// Problem while trying to get body
print(access_token);
print(response.statusCode);
// Implement traitement of datas
print(response.body);
}
// for state value

Loading…
Cancel
Save