5.12.1 • Published 4 years ago

quantimodo v5.12.1

Weekly downloads
81
License
Apache 2.0
Repository
github
Last release
4 years ago

quantimodo

Quantimodo - JavaScript client for quantimodo QuantiModo makes it easy to retrieve normalized user data from a wide array of devices and applications. Learn about QuantiModo, check out our docs or contact us at help.quantimo.do.

Installation

For Node.js

npm

Then install it via:

npm install quantimodo --save

You should now be able to require('quantimodo') in javascript files from the directory you ran the last command above from.

For browser

bower install quantimodo --save

Then include lib/quantimodo/quantimodo-web.js in the HTML pages.

Getting Started

Please follow the installation instruction and execute the following JS code:

var Quantimodo = require('quantimodo');

var defaultClient = Quantimodo.ApiClient.instance;

// Configure API key authorization: access_token
var access_token = defaultClient.authentications['access_token'];
access_token.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//access_token.apiKeyPrefix['access_token'] = "Token"

// Configure OAuth2 access token for authorization: quantimodo_oauth2
var quantimodo_oauth2 = defaultClient.authentications['quantimodo_oauth2'];
quantimodo_oauth2.accessToken = "YOUR ACCESS TOKEN"

var api = new Quantimodo.AnalyticsApi()

var body = new Quantimodo.VoteDelete(); // {VoteDelete} The cause and effect variable names for the predictor vote to be deleted.

var opts = { 
  'userId': 3.4, // {Number} User's id
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteVote(body, opts, callback);

Documentation for API Endpoints

All URIs are relative to https://app.quantimo.do/api

ClassMethodHTTP requestDescription
Quantimodo.ActivitiesApigetActivitiesGET /v3/activitiesGet Activities
Quantimodo.ActivitiesApipostActivitiesPOST /v3/activitiesPost Activities
Quantimodo.AnalyticsApigetCorrelationExplanationsGET /v3/correlations/explanationsGet correlation explanations
Quantimodo.AnalyticsApigetCorrelationsGET /v3/correlationsGet correlations
Quantimodo.AppSettingsApigetAppSettingsGET /v3/appSettingsGet client app settings
Quantimodo.AuthenticationApigetAccessTokenGET /v3/oauth2/tokenGet a user access token
Quantimodo.AuthenticationApigetOauthAuthorizationCodeGET /v3/oauth2/authorizeRequest Authorization Code
Quantimodo.AuthenticationApipostGoogleIdTokenPOST /v3/googleIdTokenPost GoogleIdToken
Quantimodo.ConnectorsApiconnectConnectorGET /v3/connectors/{connectorName}/connectObtain a token from 3rd party data source
Quantimodo.ConnectorsApidisconnectConnectorGET /v3/connectors/{connectorName}/disconnectDelete stored connection info
Quantimodo.ConnectorsApigetConnectorsGET /v3/connectors/listList of Connectors
Quantimodo.ConnectorsApigetIntegrationJsGET /v3/integration.jsGet embeddable connect javascript
Quantimodo.ConnectorsApigetMobileConnectPageGET /v3/connect/mobileMobile connect page
Quantimodo.ConnectorsApiupdateConnectorGET /v3/connectors/{connectorName}/updateSync with data source
Quantimodo.FeedApigetFeedGET /v3/feedTracking reminder notifications, messages, and study results
Quantimodo.FeedApipostFeedPOST /v3/feedPost user interactions with feed
Quantimodo.FriendsApigetFriendsGET /v3/friendsGet Friends
Quantimodo.FriendsApipostFriendsPOST /v3/friendsPost Friends
Quantimodo.GroupsApigetGroupsGET /v3/groupsGet Groups
Quantimodo.GroupsApigetGroupsMembersGET /v3/groupsMembersGet GroupsMembers
Quantimodo.GroupsApipostGroupsPOST /v3/groupsPost Groups
Quantimodo.GroupsApipostGroupsMembersPOST /v3/groupsMembersPost GroupsMembers
Quantimodo.MeasurementsApideleteMeasurementDELETE /v3/measurements/deleteDelete a measurement
Quantimodo.MeasurementsApigetMeasurementsGET /v3/measurementsGet measurements for this user
Quantimodo.MeasurementsApigetPairsGET /v3/pairsGet pairs of measurements for correlational analysis
Quantimodo.MeasurementsApimeasurementExportRequestPOST /v2/measurements/exportRequestPost Request for Measurements CSV
Quantimodo.MeasurementsApipostMeasurementsPOST /v3/measurements/postPost a new set or update existing measurements to the database
Quantimodo.MeasurementsApiupdateMeasurementPOST /v3/measurements/updateUpdate a measurement
Quantimodo.MessagesApigetMessagesMessagesGET /v3/messagesMessagesGet MessagesMessages
Quantimodo.MessagesApigetMessagesNoticesGET /v3/messagesNoticesGet MessagesNotices
Quantimodo.MessagesApigetMessagesRecipientsGET /v3/messagesRecipientsGet MessagesRecipients
Quantimodo.MessagesApipostMessagesMessagesPOST /v3/messagesMessagesPost MessagesMessages
Quantimodo.MessagesApipostMessagesNoticesPOST /v3/messagesNoticesPost MessagesNotices
Quantimodo.MessagesApipostMessagesRecipientsPOST /v3/messagesRecipientsPost MessagesRecipients
Quantimodo.NotificationsApigetNotificationPreferencesGET /v3/notificationPreferencesGet NotificationPreferences
Quantimodo.NotificationsApigetNotificationsGET /v3/notificationsGet Notifications
Quantimodo.NotificationsApipostDeviceTokenPOST /v3/deviceTokensPost DeviceTokens
Quantimodo.NotificationsApipostNotificationsPOST /v3/notificationsPost Notifications
Quantimodo.RemindersApideleteTrackingReminderDELETE /v3/trackingReminders/deleteDelete Tracking Reminder
Quantimodo.RemindersApigetTrackingReminderNotificationsGET /v3/trackingReminderNotificationsGet specific tracking reminder notifications
Quantimodo.RemindersApigetTrackingRemindersGET /v3/trackingRemindersGet repeating tracking reminder settings
Quantimodo.RemindersApipostTrackingReminderNotificationsPOST /v3/trackingReminderNotificationsSnooze, skip, or track a tracking reminder notification
Quantimodo.RemindersApipostTrackingRemindersPOST /v3/trackingRemindersStore a Tracking Reminder
Quantimodo.SharesApideleteSharePOST /v3/shares/deleteDelete share
Quantimodo.SharesApigetSharesGET /v3/sharesGet Authorized Apps, Studies, and Individuals
Quantimodo.SharesApiinviteSharePOST /v3/shares/inviteDelete share
Quantimodo.StudiesApicreateStudyPOST /v3/study/createCreate a Study
Quantimodo.StudiesApideleteVoteDELETE /v3/votes/deleteDelete vote
Quantimodo.StudiesApigetOpenStudiesGET /v3/studies/openThese are open studies that anyone can join
Quantimodo.StudiesApigetStudiesGET /v3/studiesGet Personal or Population Studies
Quantimodo.StudiesApigetStudiesCreatedGET /v3/studies/createdGet studies you have created
Quantimodo.StudiesApigetStudiesJoinedGET /v3/studies/joinedStudies You Have Joined
Quantimodo.StudiesApigetStudyGET /v4/studyGet Study
Quantimodo.StudiesApijoinStudyPOST /v3/study/joinJoin a Study
Quantimodo.StudiesApipostVotePOST /v3/votesPost or update vote
Quantimodo.StudiesApipublishStudyPOST /v3/study/publishPublish Your Study
Quantimodo.UnitsApigetUnitCategoriesGET /v3/unitCategoriesGet unit categories
Quantimodo.UnitsApigetUnitsGET /v3/unitsGet units
Quantimodo.UserApideleteUserDELETE /v3/user/deleteDelete user
Quantimodo.UserApigetUserGET /v3/userGet user info
Quantimodo.UserApigetUserBlogsGET /v3/userBlogsGet UserBlogs
Quantimodo.UserApigetUsersGET /v3/usersGet users who shared data
Quantimodo.UserApipostUserBlogsPOST /v3/userBlogsPost UserBlogs
Quantimodo.UserApipostUserSettingsPOST /v3/userSettingsPost UserSettings
Quantimodo.VariablesApideleteUserTagDELETE /v3/userTags/deleteDelete user tag or ingredient
Quantimodo.VariablesApideleteUserVariableDELETE /v3/userVariables/deleteDelete All Measurements For Variable
Quantimodo.VariablesApigetVariableCategoriesGET /v3/variableCategoriesVariable categories
Quantimodo.VariablesApigetVariablesGET /v3/variablesGet variables along with related user-specific analysis settings and statistics
Quantimodo.VariablesApipostUserTagsPOST /v3/userTagsPost or update user tags or ingredients
Quantimodo.VariablesApipostUserVariablesPOST /v3/variablesUpdate User Settings for a Variable
Quantimodo.VariablesApiresetUserVariableSettingsPOST /v3/userVariables/resetReset user settings for a variable to defaults
Quantimodo.XprofileApigetXprofileDataGET /v3/xprofileDataGet XprofileData
Quantimodo.XprofileApigetXprofileFieldsGET /v3/xprofileFieldsGet XprofileFields
Quantimodo.XprofileApigetXprofileGroupsGET /v3/xprofileGroupsGet XprofileGroups
Quantimodo.XprofileApipostXprofileDataPOST /v3/xprofileDataPost XprofileData
Quantimodo.XprofileApipostXprofileFieldsPOST /v3/xprofileFieldsPost XprofileFields
Quantimodo.XprofileApipostXprofileGroupsPOST /v3/xprofileGroupsPost XprofileGroups

Documentation for Models

Documentation for Authorization

access_token

  • Type: API key
  • API key parameter name: access_token
  • Location: URL query string

client_id

  • Type: API key
  • API key parameter name: clientId
  • Location: URL query string

quantimodo_oauth2

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://app.quantimo.do/api/v1/oauth/authorize
  • Scopes:
    • basic: Allows you to read user info (display name, email, etc)
    • readmeasurements: Allows one to read a user's measurements
    • writemeasurements: Allows you to write user measurements
5.12.1

4 years ago

5.12.0

4 years ago

5.11.111616

4 years ago

5.11.111615

4 years ago

5.10.1116141

4 years ago

5.10.111614

4 years ago

5.10.100719

5 years ago

5.10.62213

5 years ago

5.10.40213

5 years ago

5.10.40212

5 years ago

5.10.40210

5 years ago

5.10.32613

5 years ago

5.10.20315

5 years ago

5.10.12613

5 years ago

5.10.12511

5 years ago

5.9.81814

6 years ago

5.9.71117

6 years ago

5.9.71114

6 years ago

5.9.70219

6 years ago

5.9.70217

6 years ago

5.9.63016

6 years ago

5.9.62915

6 years ago

5.9.62714

6 years ago

5.9.62419

6 years ago

5.9.62418

6 years ago

5.9.62212

6 years ago

5.9.62110

6 years ago

5.9.61414

6 years ago

5.9.60814

6 years ago

5.9.53119

6 years ago

5.9.52423

6 years ago

5.9.52015

6 years ago

5.9.52014

6 years ago

5.9.51919

6 years ago

5.9.51814

6 years ago

5.9.51813

6 years ago

5.9.51811

6 years ago

5.9.50720

6 years ago

5.9.42418

6 years ago

5.9.42416

6 years ago

5.9.42215

6 years ago

5.9.41872

6 years ago

5.9.41871

6 years ago

5.9.41817

6 years ago

5.9.41815

6 years ago

5.9.41722

6 years ago

5.9.41721

6 years ago

5.9.41313

6 years ago

5.9.20115

6 years ago

5.9.13121

6 years ago

5.9.13120

6 years ago

5.9.13119

6 years ago

5.9.13020

6 years ago

5.9.13012

6 years ago

5.9.12514

6 years ago

5.8.12514

6 years ago

5.8.123120

6 years ago

5.8.123119

6 years ago

5.8.120821

6 years ago

5.8.120616

6 years ago

5.8.120609

6 years ago

5.8.120219

6 years ago

5.8.112917

6 years ago

5.8.112912

6 years ago

5.8.112817

6 years ago

5.8.112814

6 years ago

5.8.112813

6 years ago

5.8.112622

6 years ago

5.8.112620

6 years ago

5.8.112619

6 years ago

5.8.112612

6 years ago

5.8.112511

6 years ago

5.8.110912

6 years ago

5.8.82817

7 years ago

5.8.727

7 years ago

5.8.725

7 years ago

5.8.726

7 years ago