shlink 0.4.0 shlink: ^0.4.0 copied to clipboard
A Library to manage shlink.io based self-hosted URL shortener.
A library to access shlink.io based URL shortener.
Usage #
Add the following dependency to the pubspec.yaml
Stable
dependencies:
ftpclient: ^0.3.0
Development
dependencies:
ftpclient: ^0.4.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);
}