Skip to content

Instantly share code, notes, and snippets.

@larryq
Last active September 17, 2021 16:54
Show Gist options
  • Save larryq/cff857eb45346a5dbbd0c48f5c568bb6 to your computer and use it in GitHub Desktop.
Save larryq/cff857eb45346a5dbbd0c48f5c568bb6 to your computer and use it in GitHub Desktop.
Future<Response> playEvent(clipId) {
return http.post(
'https://api.songclip.com/events/play',
headers: {
HttpHeaders.authorizationHeader: authHeader,
"apikey": apikey,
},
body: jsonEncode(<String, Object>{
'sourcePlatform': 'iOS',
'sessionId': 'U7BMARUXDWNY',
'uniqueId': 'd35ef6f6ee1b',
'clipId': '${clipId}'
}),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment