Created
March 3, 2021 04:52
-
-
Save larryq/fe3cc927166e420f5297216025d209bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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