Skip to content

Instantly share code, notes, and snippets.

@larryq
Last active September 17, 2021 16:53
Show Gist options
  • Select an option

  • Save larryq/2a23148b9e7efe0a18d8bd7d877b89af to your computer and use it in GitHub Desktop.

Select an option

Save larryq/2a23148b9e7efe0a18d8bd7d877b89af to your computer and use it in GitHub Desktop.

Revisions

  1. larryq revised this gist Sep 17, 2021. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    Future<http.Response> shareEvent(clipId) async {
    final response = await http.post(
    'https://api.songclip.com/songclips/${clipId}/events/share',
    'https://api.songclip.com/events/share',
    headers: {
    HttpHeaders.authorizationHeader: authHeader,
    "apikey": apikey,
    @@ -9,5 +9,6 @@ Future<http.Response> shareEvent(clipId) async {
    'sourcePlatform': 'iOS',
    'sessionId': 'U7BMARUXDWNY',
    'uniqueId': 'd35ef6f6ee1b',
    'clipId':'${clipId}'
    }),
    );
  2. larryq revised this gist May 14, 2021. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -6,10 +6,8 @@ Future<http.Response> shareEvent(clipId) async {
    "apikey": apikey,
    },
    body: jsonEncode(<String, Object>{
    'context': {
    'sourcePlatform': 'iOS',
    'sessionId': 'U7BMARUXDWNY',
    'uniqueId': 'd35ef6f6ee1b',
    }
    }),
    );
  3. larryq created this gist Mar 3, 2021.
    15 changes: 15 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    Future<http.Response> shareEvent(clipId) async {
    final response = await http.post(
    'https://api.songclip.com/songclips/${clipId}/events/share',
    headers: {
    HttpHeaders.authorizationHeader: authHeader,
    "apikey": apikey,
    },
    body: jsonEncode(<String, Object>{
    'context': {
    'sourcePlatform': 'iOS',
    'sessionId': 'U7BMARUXDWNY',
    'uniqueId': 'd35ef6f6ee1b',
    }
    }),
    );