cleverbot 0.1.0

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

cleverbot

A wrapper for interacting with the Cleverbot API.

Usage

Get your API key at The official Cleverbot API site.

A simple usage example:

import 'package:cleverbot/cleverbot.dart';

main() async {
  var cleverbot = new Cleverbot("<YOUR APIKEY HERE>");
  var result = await cleverbot.think('Hello Cleverbot!');
  print(result);
}

For usage in the browser just import cleverbot_browser.dart:

import 'package:cleverbot/cleverbot_browser.dart';

Features and bugs

Please file feature requests and bugs at the issue tracker.

Changelog

0.1.0

  • fixed exceptions on wrongly encoded interaction history

0.0.8 - 0.0.9

  • added a few hints for cleverbot.com
  • added wrapper parameter

0.0.4 - 0.0.7

  • fixed UTF8 errors
  • refactored code

0.0.3

  • fixed example in readme :)

0.0.2

  • added support for usage from browser AND console

0.0.1

  • implemented basic functionality

example/cleverbot_example.dart

// Copyright (c) 2017, 'rinukkusu'. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

import 'package:cleverbot/cleverbot.dart';

main() async {
  var cleverbot = new Cleverbot("<YOUR APIKEY HERE>");
  var result = await cleverbot.think('Hello Cleverbot!');
  print(result);
}

Use this package as a library

1. Depend on it

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


dependencies:
  cleverbot: ^0.1.0

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:cleverbot/cleverbot.dart';
  
Version Uploaded Documentation Archive
0.1.0 Apr 12, 2017 Go to the documentation of cleverbot 0.1.0 Download cleverbot 0.1.0 archive
0.0.9 Apr 11, 2017 Go to the documentation of cleverbot 0.0.9 Download cleverbot 0.0.9 archive
0.0.8 Apr 11, 2017 Go to the documentation of cleverbot 0.0.8 Download cleverbot 0.0.8 archive
0.0.7 Apr 11, 2017 Go to the documentation of cleverbot 0.0.7 Download cleverbot 0.0.7 archive
0.0.6 Apr 11, 2017 Go to the documentation of cleverbot 0.0.6 Download cleverbot 0.0.6 archive
0.0.5 Apr 11, 2017 Go to the documentation of cleverbot 0.0.5 Download cleverbot 0.0.5 archive
0.0.4 Apr 11, 2017 Go to the documentation of cleverbot 0.0.4 Download cleverbot 0.0.4 archive
0.0.3 Apr 11, 2017 Go to the documentation of cleverbot 0.0.3 Download cleverbot 0.0.3 archive
0.0.2 Apr 11, 2017 Go to the documentation of cleverbot 0.0.2 Download cleverbot 0.0.2 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
4
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]
2
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.

Analysis issues and suggestions

Support Dart 2 in pubspec.yaml.

The SDK constraint in pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see https://www.dartlang.org/dart-2#migration.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.0.0 <2.0.0