tincan 1.0.6 copy "tincan: ^1.0.6" to clipboard
tincan: ^1.0.6 copied to clipboard

outdated

TincanDart in an implmentation of the Tin Can API for the Dart language

A Dart library of the Tin Can API #

For more information about the Tin Can API visit:

http://tincanapi.com/

Installation: #

In your pubspec.yaml

dependencies:
  tincan: any

Sample Usage: #

In your code:

import 'package:tincan/tincan.dart';

final lrs = RemoteLRS(
      endpoint: 'https://my.lrs.provider',
      username: 'account key or user name',
      password: 'account secret or password',
    );

final statement = Statement(
  actor: Agent(
    mbox: 'mailto:person@doingsomething.com',
    name: 'Test Agent',
  ),
  verb: Verb(
    id: 'http://adlnet.gov/expapi/verbs/experienced',
    display: {'en-US': 'experienced'},
  ),
  object: Activity(
    id: 'http://tincanapi.com/TinCanDart/Test/Unit/0',
    definition: ActivityDefinition(
      type: 'http://id.tincanapi.com/activitytype/unit-test',
      name: {'en-US': 'TinCanDart Tests: Unit 0'},
      description: {
        'en-US': 'Unit test 0 in the test suite for the Tin Can Dart library.'
      },
    ),
  ),
);

lrs.saveStatement(statement);
2
likes
0
pub points
29%
popularity

Publisher

verified publisherjosephblough.com

TincanDart in an implmentation of the Tin Can API for the Dart language

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

crypto, http, http_parser, uuid

More

Packages that depend on tincan