free_mobile 5.0.0

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 50

Free Mobile for Dart

Runtime Release License Coverage Build

Send SMS messages to your Free Mobile account, in Dart.

Resources

License

Free Mobile for Dart is distributed under the MIT License.

Changelog

Version 5.0.0

  • Breaking change: removed the Client.defaultEndPoint static property.
  • Updated the package dependencies.

Version 4.2.0

  • Raised the Dart SDK constraint.
  • Updated the package dependencies.

Version 4.1.0

  • Added an example code.
  • Raised the Dart SDK constraint.
  • Using optional const and new.
  • Updated the package dependencies.

Version 4.0.1

  • Fixed the issue #2: the Client.sendMessage() method does not always throws a ClientException when an error occurs.
  • Updated the test dependency.

Version 4.0.0

  • Breaking change: changed the signature of the Client events.
  • Breaking change: starting to use and support the Dart 2 SDK.
  • Breaking change: the httpClient property is now private.
  • Added a user guide based on MkDocs.
  • Added the ClientException and RequestEvent classes.
  • Updated the package dependencies.

Version 3.2.0

  • Added support for browser platform.

Version 3.1.0

  • Updated the package dependencies.

Version 3.0.0

  • Breaking change: changed the signature of the constructor.
  • Breaking change: raised the required Dart version.
  • Breaking change: the class properties are now read-only.
  • Breaking change: removed the toJson() and toString() methods.
  • Changed licensing for the MIT License.
  • Updated the package dependencies.

Version 2.0.0

  • Breaking change: renamed the endPoint constant to defaultEndPoint.
  • Added the endPoint property.

Version 1.0.0

  • Breaking change: raised the required Dart version.
  • Updated the package dependencies.

Version 0.1.0

  • Initial release.

example/main.dart

import 'dart:async';
import 'package:free_mobile/free_mobile.dart';

/// Sends an SMS notification.
Future<void> main() async {
  try {
    final client = Client('your account identifier', 'your API key');
    // For example: Client('12345678', 'a9BkVohJun4MAf')

    await client.sendMessage('Hello World!');
    print('The message was sent successfully');
  }

  on ClientException catch (err) {
    print('An error occurred: ${err.message}');
    print('From: ${err.uri}');
  }
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  free_mobile: ^5.0.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:free_mobile/free_mobile.dart';
  
Version Uploaded Documentation Archive
5.0.0 Aug 21, 2018 Go to the documentation of free_mobile 5.0.0 Download free_mobile 5.0.0 archive
4.2.0 Aug 14, 2018 Go to the documentation of free_mobile 4.2.0 Download free_mobile 4.2.0 archive
4.1.0 Jul 21, 2018 Go to the documentation of free_mobile 4.1.0 Download free_mobile 4.1.0 archive
4.0.1 Mar 16, 2018 Go to the documentation of free_mobile 4.0.1 Download free_mobile 4.0.1 archive
4.0.0 Mar 2, 2018 Go to the documentation of free_mobile 4.0.0 Download free_mobile 4.0.0 archive
3.2.0 Dec 7, 2017 Go to the documentation of free_mobile 3.2.0 Download free_mobile 3.2.0 archive
3.1.0 Nov 3, 2017 Go to the documentation of free_mobile 3.1.0 Download free_mobile 3.1.0 archive
3.0.0 Oct 4, 2017 Go to the documentation of free_mobile 3.0.0 Download free_mobile 3.0.0 archive
2.0.0 May 27, 2017 Go to the documentation of free_mobile 2.0.0 Download free_mobile 2.0.0 archive
1.0.0 Mar 25, 2017 Go to the documentation of free_mobile 1.0.0 Download free_mobile 1.0.0 archive

All 11 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
50
Learn more about scoring.

We analyzed this package on Sep 18, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.3

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:free_mobile/free_mobile.dart.

Suggestions

Format lib/src/http.dart.

Run dartfmt to format lib/src/http.dart.

Format lib/src/http/client.dart.

Run dartfmt to format lib/src/http/client.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
http ^0.11.3 0.11.3+17
Transitive dependencies
async 2.0.8
charcode 1.1.2
collection 1.14.11
http_parser 3.1.3
meta 1.1.6
path 1.6.2
source_span 1.4.1
string_scanner 1.0.4
typed_data 1.1.6
Dev dependencies
coverage ^0.12.2
coveralls ^4.0.0
grinder ^0.8.3
test ^1.3.0