Skip to content

Instantly share code, notes, and snippets.

@larryq
Last active September 17, 2021 16:53
Show Gist options
  • Save larryq/2a23148b9e7efe0a18d8bd7d877b89af to your computer and use it in GitHub Desktop.
Save larryq/2a23148b9e7efe0a18d8bd7d877b89af to your computer and use it in GitHub Desktop.
Future<http.Response> shareEvent(clipId) async {
final response = await http.post(
'https://api.songclip.com/events/share',
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