Download the PHP package cognifit/cognifit-sdk-php without Composer
On this page you can find all versions of the php package cognifit/cognifit-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cognifit/cognifit-sdk-php
More information about cognifit/cognifit-sdk-php
Files in cognifit/cognifit-sdk-php
Package cognifit-sdk-php
Short Description Library for managing CogniFit user accounts
License MIT
Informations about the package cognifit-sdk-php
cognifit-sdk-php
Description
This library helps developers to connect with CogniFit API(https://api.cognifit.com).
CogniFit API allows CogniFit partners to integrate CogniFit Assessment Batteries and Training Games seamless into their own websites. CogniFit partners can be clinicians, hospitals, schools, universities, researchers and associates.
Reference
Health Check
User registration
Create new user account
Associate existing user account
If the user already exists in CogniFit, their account can be associated. Redirect the user to the url returned by this method.
If the user accepts to associate the CogniFit accout with the partner, the user_token will be sent back to the callback_url provided.
The callback_url must be one of the callback urls communicated to CogniFit when the partner was created.
State parameter is a hash generated by the partner. This value will be added to the callback response.
User authentication
Issue user access token
Use access token to access CogniFit
User manager
Update user account
User activation
If a user was previously deactivated, this method will set it to activated. Users need to be activated to log in CogniFit. Activate a user is not allocating any license or program to that user.
User deactivation
Allows to deactivate users and free their licenses. As long as users are deactivated, their cognitive information can not be reached nor can they log in CogniFit.
User grant training subscription
Allows to activate monthly recurring subscriptions for users. User will have access to all training programs and all games. By default, the personalised training will be set as training program.
User cancel training subscription
Allows to deactivate monthly recurring subscriptions for users. User will have access until the end of his subscription period. After that subscription will not be renewed and user will not have anymore access to trainings and games.
User account deletion
Allows to delete user accounts. User data would be removed. User would not be able to access CogniFit anymore with this account. The partner would not be able to access user data. Partners are only able to delete accounts created by them.
Cognitive assessments
Assessments list
List of allowed assessment keys to use when setting a program.
Single task assessment list
List of allowed single task assessment keys to use when setting a program.
Questionnaires list
List of allowed questionnaire keys to use when setting a program.
Brain training Programs
Training list
List of allowed training keys to use when setting a training program.
Brain Games
Brain Game list
List of allowed games keys to use when starting a unique game session.
Cognitive Skill list
List of cognitive skills measured and trained by CogniFit.
Login & Launch
After obtaining a user access token, it must be used before it expires:
- by getting a url with next method and redirect there the user
- by using CogniFit Launcher SDK for JavaScript to embed CogniFit in your site