flickr 0.0.1

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 42

About

Dartlang wrapper for flickr API calls.

Install

In your pubspec.yaml:

dependencies:
  flickr:
    git: git@github.com:damondouglas/flickr.dart.git

Documentation

https://damondouglas.github.io/flickr.dart/

Testing

For tests to pass, set FLICKR_API_KEY obtained from request api key in your system variables:

$ export FLICKR_API_KEY="..."

Then run:

$ pub run test

Server

import 'package:shelf/shelf.dart' as shelf;
import 'package:shelf/shelf_io.dart' as io;
import 'package:flickr/flickr_shelf.dart' as flickr;

main() {
  var port = 9999;
  var apiKey = Platform.environment['FLICKR_API_KEY'];
  var f = new flickr.Flickr(apiKey);
  var handler = const shelf.Pipeline()
      .addMiddleware(shelf.logRequests())
      .addHandler(f.handler);

  var server = await io.serve(handler, '0.0.0.0', port);
}

Client

import 'package:flickr/flickr_client.dart' as flickr;

main() async {
  var rootUrl = 'host url without http or https'; // example: morning-true-92723.herokuapp.com
  var api = new flickr.FlickrApi(rootUrl);

  var result = api.search('cats', 1);
  var photos = result.entries;
  var photo = photos.first;
  var smallPhotoUri = photo.smallSquareUri;
}

Changelog

0.0.1

  • Initial version, created by Stagehand

Use this package as a library

1. Depend on it

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


dependencies:
  flickr: "^0.0.1"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


      import 'package:flickr/flickr.dart';
  
Version Uploaded Documentation Archive
0.0.1 Mar 23, 2017 Go to the documentation of flickr 0.0.1 Download flickr 0.0.1 archive

Analysis

We analyzed this package on Jun 16, 2018, and provided a score, details, and suggestions below. Analysis was completed with status tool failures using:

  • Dart: 2.0.0-dev.60.0
  • pana: 0.11.3

Scores

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

Platforms

Detected platforms: unsure

Error(s) prevent platform classification:

Make sure dartanalyzer runs.

Suggestions

  • Make sure dartanalyzer runs.

    Running dartanalyzer . failed with the following output:

    Invalid argument(s): dartanalyzer exception: NoSuchMethodError: The getter 'length' was called on null.
    
  • Fix platform conflicts.

    Error(s) prevent platform classification:

    Make sure dartanalyzer runs.

  • Package is getting outdated.

    The package was released 64 weeks ago.

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use flickr.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.0.0 <2.0.0
http >=0.11.3+9 <0.12.0 0.11.3+16
shelf >=0.6.7+2 <0.7.0 0.6.8 0.7.3+1
shelf_route >=0.14.3 <0.15.0 0.14.3
Transitive dependencies
async 1.13.3 2.0.7
charcode 1.1.1
collection 1.14.10
concepts 0.2.0
either 0.1.8
http_parser 3.1.2
matcher 0.12.3
meta 1.1.5
option 1.2.0
path 1.6.0 1.6.1
quiver 0.29.0+1
shelf_path 0.1.8
source_span 1.4.0
stack_trace 1.9.2
stream_channel 1.6.7+1
string_scanner 1.0.2
typed_data 1.1.5
uri 0.11.2
utf 0.9.0+4
Dev dependencies
shelf_cors >=0.2.1 <0.3.0
test >=0.12.0 <0.13.0