Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 2.0.1
* Migrated to null safety

# 0.1.2
* Fixing the changelog version titles

Expand Down
4 changes: 2 additions & 2 deletions lib/twitter_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class twitterApi {
///
/// The twitter developer website also goes into detail about [options] that can
/// be applied. These [options] are of type Map<String, String>.
getTwitterRequest(String method, String url, {Map<String, String> options, int timeout = 10}) async {
getTwitterRequest(String method, String url, {Map<String, String>? options, int timeout = 10}) async {
if(options == null) options = {};

// Create the nonce
Expand All @@ -148,7 +148,7 @@ class twitterApi {
var authHeader = _getOauthHeader();

// The response from the request
Future response;
Future? response;

// Add a post and get option
if(method.toUpperCase() == "GET")
Expand Down
9 changes: 4 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: twitter_api
version: 0.1.2
author: "Dart Team <misc@dartlang.org>"
version: 1.0.1
homepage: https://github.com/stefanuros/dartTwitterAPI
description: An easy way to authenticate and make requests to the Twitter API.

environment:
sdk: '>=2.1.0 <3.0.0'
sdk: '>=2.12.0 <3.0.0'

dependencies:
http: ^0.12.0+2
crypto: ^2.1.3
http: ^0.13.4
crypto: ^3.0.1