Skip to content

Instantly share code, notes, and snippets.

@hardikm9850
Last active April 12, 2023 13:03
Show Gist options
  • Save hardikm9850/bd7ea09980db34e30d97bfab183efd9a to your computer and use it in GitHub Desktop.
Save hardikm9850/bd7ea09980db34e30d97bfab183efd9a to your computer and use it in GitHub Desktop.
void main() async {
var tweetId = 12345;
// Get tweet details by tweet Id
final networkData = await fetchTweetById(tweetId);
final jsonData = jsonDecode(networkData);
}
Future<Tweet> fetchTweetById(int tweetId) async {
final url = Uri.parse("www.twitter.com" + "/$tweetId");
final response = await http.get(url);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment