Skip to content

Instantly share code, notes, and snippets.

@larryq
Created March 3, 2021 04:52
Show Gist options
  • Save larryq/fe3cc927166e420f5297216025d209bb to your computer and use it in GitHub Desktop.
Save larryq/fe3cc927166e420f5297216025d209bb to your computer and use it in GitHub Desktop.
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'package:http/http.dart';
import 'package:fluttertoast/fluttertoast.dart';
/*
NOTE:
This app is for example purposes only. In a production app you do *not*
want to store authorization headers or API keys on the client device, much less in plain text.
Ideally you will proxy the requests to a server, which stores the API key and acts
as a middleman to the Songclip API.
*/
final authHeader =
'YOUR_HEADER_HERE' //change this to your auth header value
final apikey = 'YOUR APIKEY_HERE'; //change to your API key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment