From 3f90ad7155ddae5c8eeca215df0002970deb2674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Mielcarek?= Date: Mon, 7 Nov 2022 07:08:10 +0100 Subject: [PATCH] Suite API --- .../android/app/src/main/AndroidManifest.xml | 3 +-- Sources/dafl_project_flutter/lib/api/api.dart | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Sources/dafl_project_flutter/android/app/src/main/AndroidManifest.xml b/Sources/dafl_project_flutter/android/app/src/main/AndroidManifest.xml index b3767c7..2d031a3 100644 --- a/Sources/dafl_project_flutter/android/app/src/main/AndroidManifest.xml +++ b/Sources/dafl_project_flutter/android/app/src/main/AndroidManifest.xml @@ -33,7 +33,6 @@ android:name="flutterEmbedding" android:value="2" /> - - + diff --git a/Sources/dafl_project_flutter/lib/api/api.dart b/Sources/dafl_project_flutter/lib/api/api.dart index 5e2ced2..a3e9dcb 100644 --- a/Sources/dafl_project_flutter/lib/api/api.dart +++ b/Sources/dafl_project_flutter/lib/api/api.dart @@ -57,13 +57,13 @@ class Api { } getCurrentlyPlayingTrack() async { - var url = - Uri.https('api.spotify.com', 'v1/me/player/currently-playing', {}); + var url = Uri.https('api.spotify.com', 'v1/me/player/currently-playing'); var response = await client.post(url, headers: { 'Authorization': '$token_type $access_token', 'Content-Type': 'application/json' }); // Problem while trying to get body + print(response.body); } // for state value