This module is a minimalist module for integrating the badgeville gamification service with Drupal.
It provides an API which wraps the Badgville services' REST API and simplifies the process of registering and communicating with the Badgeville REST API from within drupal.
Badgeville https://www.badgeville.com/ is a gameification service. It allows you to assign rewards / goals to certain activities. Badgeville tracks users progress towards achievements.
How it works
Badgeville is integrated into drupal using two separate modules:
- The badgeville drupal module, which automatically adds the relevant js and supplies an API that can be accessed in your own custom module.
- Your own custom module, that detects and sends events to badgeville via badgeville.modules' API
The Badgeville Module
This is a minimilist module for integrating Badgeville with Drupal.
Once installed, enabled and configured the badgeville module
- Automatically includes badgevilles' tracker js into every page viewed by a logged in user.
- Sets the user in that tracker to the currently logged in user.
- Creates a global $badgeville object available for use in other modules.
- In some cases (depending on program flow) the global may not yet be available so just do:
$badgeville = new badgeville();
See README.txt for documentation on the badgeville class and for usage examples.
Further info and download: https://drupal.org/sandbox/bevan.wishart/1309370
- Copy the code to sites/all/modules/custom
- Enable the module
- Browse to https://[your sites domain]/admin/config/content/badgeville
- Choose sandbox (unless you really want to send to badgevilles' production server)
- Copy and paste the network id, public and private api key's from https://sandbox.v2.badgeville.com/devcenter/home into the relevant fields
- Enter the url of the site you want to register events against. Available sites can be seen here: https://sandbox.v2.badgeville.com/sites
|7.x-1.x-dev||tar.gz (24.36 KB) | zip (30.55 KB)||2013年9月30日||发布说明||简 | 繁 | 更多|