quantimodo / quantimodo-sdk-php
5.10.111411
2019-11-14 17:04 UTC
Requires
- php: >=5.4
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ~4.8
- satooshi/php-coveralls: ~1.0
- squizlabs/php_codesniffer: ~2.6
- dev-master
- 5.10.111411
- 5.10.111410
- 5.10.32613
- 5.9.90517
- 5.9.71714
- 5.8.121314
- 5.8.120612
- 5.8.112612
- 5.8.112609
- 5.8.112520
- 5.8.112518
- 5.8.112512
- 5.8.112511
- 5.8.112510
- 5.8.1119
- 5.8.1103
- 5.0.4
- 5.0.3
- 5.0.2
- 5.0.1
- 4.9.9
- 4.7.6
- 4.7.5
- 4.7.4
- 4.7.0
- 4.6.9
- 4.6.5
- 4.0.8
- 1.8.8
- 1.8.7
- dev-renovate/phpunit-phpunit-11.x
- dev-renovate/squizlabs-php_codesniffer-3.x
- dev-renovate/satooshi-php-coveralls-2.x
- dev-renovate/friendsofphp-php-cs-fixer-3.x
This package is auto-updated.
Last update: 2024-09-03 03:26:52 UTC
README
我们使从各种设备和应用程序中检索和分析标准化用户数据变得简单。查看我们的 文档和 SDK 或 联系我们。
此 PHP 包由 Swagger Codegen 项目自动生成
- API 版本:5.8.112511
- 构建包:io.swagger.codegen.languages.PhpClientCodegen
要求
PHP 5.5 及以上
安装与使用
Composer
要使用 Composer 安装绑定,请将以下内容添加到 composer.json
{
"repositories": [
{
"type": "git",
"url": "https://github.com/quantimodo/quantimodo-sdk-php.git"
}
],
"require": {
"quantimodo/quantimodo-sdk-php": "*@dev"
}
}
然后运行 composer install
手动安装
下载文件并包含 autoload.php
require_once('/path/to/QuantiModoClient/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门
请按照 安装步骤 进行操作,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: access_token QuantiModo\Client\Configuration::getDefaultConfiguration()->setApiKey('access_token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // QuantiModo\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('access_token', 'Bearer'); // Configure OAuth2 access token for authorization: quantimodo_oauth2 QuantiModo\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); $api_instance = new QuantiModo\Client\Api\AnalyticsApi(); $body = new \QuantiModo\Client\Model\VoteDelete(); // \QuantiModo\Client\Model\VoteDelete | The cause and effect variable names for the predictor vote to be deleted. $user_id = 3.4; // float | User's id try { $result = $api_instance->deleteVote($body, $user_id); print_r($result); } catch (Exception $e) { echo 'Exception when calling AnalyticsApi->deleteVote: ', $e->getMessage(), PHP_EOL; } ?>
API 端点文档
所有 URI 都是相对于 https://app.quantimo.do/api
模型文档
- ActivitiesResponse
- Activity
- AppSettings
- AppSettingsResponse
- AuthorizedClients
- Button
- Card
- Chart
- CommonResponse
- ConnectInstructions
- ConversionStep
- Correlation
- DataSource
- DeviceToken
- Explanation
- ExplanationStartTracking
- FeedResponse
- Friend
- FriendsResponse
- GetConnectorsResponse
- GetCorrelationsDataResponse
- GetCorrelationsResponse
- GetSharesResponse
- GetStudiesResponse
- GetTrackingReminderNotificationsResponse
- Group
- GroupsMember
- GroupsMembersResponse
- GroupsResponse
- Image
- InputField
- JsonErrorResponse
- Measurement
- MeasurementDelete
- MeasurementItem
- MeasurementSet
- MeasurementUpdate
- MessagesMessage
- MessagesMessagesResponse
- MessagesNotice
- MessagesNoticesResponse
- MessagesRecipient
- MessagesRecipientsResponse
- Notification
- NotificationsResponse
- Pair
- ParticipantInstruction
- PostMeasurementsDataResponse
- PostMeasurementsResponse
- PostStudyCreateResponse
- PostStudyPublishResponse
- PostTrackingRemindersDataResponse
- PostTrackingRemindersResponse
- PostUserSettingsDataResponse
- PostUserSettingsResponse
- ShareInvitationBody
- Study
- StudyCharts
- StudyCreationBody
- StudyHtml
- StudyImages
- StudyJoinResponse
- StudyLinks
- StudySharing
- StudyText
- StudyVotes
- TrackingReminder
- TrackingReminderDelete
- TrackingReminderNotification
- TrackingReminderNotificationAction
- TrackingReminderNotificationPost
- TrackingReminderNotificationTrackAllAction
- Unit
- UnitCategory
- User
- UserBlog
- UserBlogsResponse
- UserTag
- UserVariableDelete
- Variable
- VariableCategory
- VariableCharts
- Vote
- VoteDelete
- XprofileDataResponse
- XprofileDatum
- XprofileField
- XprofileFieldsResponse
- XprofileGroup
- XprofileGroupsResponse
授权文档
access_token
- 类型: API 密钥
- API 密钥参数名: access_token
- 位置: URL 查询字符串
client_id
- 类型: API 密钥
- API 密钥参数名: clientId
- 位置: URL 查询字符串
quantimodo_oauth2
- 类型: OAuth
- 流程: accessCode
- 授权URL: https://app.quantimo.do/api/v2/oauth/authorize
- 作用域:
- basic: 允许您读取用户信息(显示名称、电子邮件等)
- readmeasurements: 允许您读取用户的测量数据
- writemeasurements: 允许您写入用户测量数据