shlink 0.7.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 50

A library to access shlink.io based URL shortener.

Build Status

Usage #

Add the following dependency to the pubspec.yaml

Stable

dependencies:
  shlink: ^0.7.0

Development

dependencies:
  shlink: ^0.8.0

NOTE: This version is not yet available on pub.dev

How to use this lib:

import 'package:shlink/shlink.dart';

void main() async {
  Shlink shlink = Shlink('https://example.com', 'my-api-key');

  ShortUrl short = await shlink.create(CreateShortURL.simple('https://github.com/Nexific/dart_shlink'));
  print(short);
}

0.7.0 #

  • Fixed Health not exported

0.6.0 #

  • Health Check

0.5.0 #

  • Fixed documentation

0.4.0 #

  • List visits

0.3.0 #

  • List short URL's
  • List tags
  • Add tags
  • Rename tag
  • Delete tags

0.2.0 #

  • Lookup short URL
  • Update short URL Meta
  • Update short URL Tags
  • Delte short URL

0.1.0 #

  • Create a short URL

example/README.md

Examples #

You find some useful examples in here:

Create short URL's

Use this package as a library

1. Depend on it

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


dependencies:
  shlink: ^0.7.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:shlink/shlink.dart';
  
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 Jul 3, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.13

Analysis suggestions

Package not compatible with runtime flutter-web on web

Because of the import of dart:io via the import chain package:shlink/shlink.dartpackage:shlink/src/shlink_base.dartdart:io

Package not compatible with runtime web

Because of the import of dart:io via the import chain package:shlink/shlink.dartpackage:shlink/src/shlink_base.dartdart:io

Health suggestions

Format lib/src/shlink_base.dart.

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

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
Dev dependencies
pedantic ^1.8.0
test ^1.6.0