tincan 2.0.0 icon indicating copy to clipboard operation
tincan: ^2.0.0 copied to clipboard

TincanDart is an xAPI implmentation for the Dart language

A Dart library of the Tin Can API (also known as xAPI) #

For more information about the Tin Can API visit:

http://tincanapi.com/

Installation: #

In your pubspec.yaml

dependencies:
  tincan: ^1.1.1

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
120
pub points
46%
popularity

Publisher

verified publisher iconjosephblough.com

TincanDart is an xAPI implmentation for the Dart language

Homepage

Documentation

API reference

License

Icon for licenses.Apache-2.0 (LICENSE)

Dependencies

crypto, http, http_parser, uuid

More

Packages that depend on tincan