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

TinCanDart is an xAPI implementation for the Dart programming 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: ^2.1.3

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
130
pub points
31%
popularity

Publisher

verified publisherjosephblough.com

TinCanDart is an xAPI implementation for the Dart programming language

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

crypto, http, http_parser, uuid

More

Packages that depend on tincan