static const BASE_URL = 'https://api.music.apple.com/v1/catalog';
static const GENRE_URL = "$BASE_URL/$STOREFRONT/genres";
static const _SONG_URL = "$BASE_URL/$STOREFRONT/songs";
static const _ALBUM_URL = "$BASE_URL/$STOREFRONT/albums";
static const _CHART_URL = "$BASE_URL/$STOREFRONT/charts";
static const _ARTIST_URL = "$BASE_URL/$STOREFRONT/artists";
static const _SEARCH_URL = "$BASE_URL/$STOREFRONT/search";
static const JWT_KEY = 'PUT_APPLE_MUSIC_JWT_KEY_HERE';
Future<dynamic> _fetchJSON(String url) async {
final response =
await http.get(url, headers: {'Authorization': "Bearer $JWT_KEY"});
if (response.statusCode == 200) {
return json.decode(response.body);
в 8-ой строке 'PUT_APPLE_MUSIC_JWT_KEY_HERE' мне нужен ключ от Apple Music JWT, как ?? я могу получить его? заранее спасибо