lynkz 1.0.4

  • README.md
  • Example
  • Installing
  • Versions
  • 0

lynkz

The somewhat official wrapper for lynkz.me written in Dartlang

By: Evan Pratten

How to use

import 'package:lynkz/lynkz.dart' as lynkz;

main() async{
// shorten a link
var shortenedlink = await lynkz.Create("Https://link.here");

// print that link
print(shortenedlink[0]);

// get the link id
var linkid = lynkz.urlToIdentifier(shortenedlink[0]);

// get the delete key
var deletekey = shortenedlink[1];

// delete that link
lynkz.Delete(linkid, deletekey);
}

example/example.dart

import 'package:lynkz/lynkz.dart' as lynkz;

main() async {
// shorten a link
  var shortenedlink = await lynkz.Create("Https://link.here");

// print that link
  print(shortenedlink[0]);

// get the link id
  var linkid = lynkz.urlToIdentifier(shortenedlink[0]);

// get the delete key
  var deletekey = shortenedlink[1];

// delete that link
  lynkz.Delete(linkid, deletekey);
}

Use this package as a library

1. Depend on it

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


dependencies:
  lynkz: ^1.0.4

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:lynkz/lynkz.dart';
  
Version Uploaded Documentation Archive
1.0.4 May 2, 2018 Go to the documentation of lynkz 1.0.4 Download lynkz 1.0.4 archive
1.0.3 May 1, 2018 Go to the documentation of lynkz 1.0.3 Download lynkz 1.0.3 archive
1.0.2 May 1, 2018 Go to the documentation of lynkz 1.0.2 Download lynkz 1.0.2 archive
1.0.1 May 1, 2018 Go to the documentation of lynkz 1.0.1 Download lynkz 1.0.1 archive
1.0.0 Apr 30, 2018 Go to the documentation of lynkz 1.0.0 Download lynkz 1.0.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
0
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
0
Overall:
Weighted score of the above. [more]
0
Learn more about scoring.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Health issues and suggestions

Fix lib/lynkz.dart. (-25.38 points)

Analysis of lib/lynkz.dart failed with 1 error, 1 hint:

line 9 col 16: Undefined name 'JSON'.

line 2 col 8: Unused import: 'dart:convert'.

Format lib/globals.dart.

Run dartfmt to format lib/globals.dart.

Maintenance issues and suggestions

Add SDK constraint in pubspec.yaml. (-50 points)

For information about setting SDK constraint, please see https://www.dartlang.org/tools/pub/pubspec#sdk-constraints.

Maintain CHANGELOG.md. (-20 points)

Changelog entries help clients to follow the progress in your code.

Dependencies

Package Constraint Resolved Available
Direct dependencies
http >=0.11.3+16 <0.12.0 0.11.3+17 0.12.0
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