Twitter - Api half way there - committing to check out other branch

This commit is contained in:
kwainright
2020-04-09 18:32:06 -04:00
parent 9fc50a5215
commit 2d103cba78

View File

@@ -21,7 +21,7 @@ class TwitterFeedCreation {
Future<List<Tweet>> getPage({int size = 10}) async {
var url = '$twitterBase/tweets.json?q=from%3ACharlotteFTBL&result_type=mixed&count=$size';
http.Response response = await http.get(url,
headers: <String, String> {}
headers: <String, String> {'authorization': apiKey,}
);
Iterable tweets = json.decode(response.body);
return tweets.map((e) => Tweet.fromJson(e)).toList();