Skip to content

Commit

Permalink
5.10.111410
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepsinn committed Nov 14, 2019
1 parent 1648b83 commit d7e4def
Show file tree
Hide file tree
Showing 267 changed files with 9,653 additions and 854 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quantimodo/quantimodo-sdk-php",
"version": "5.10.32613",
"version": "5.10.111410",
"description": "",
"keywords": [
"swagger",
Expand Down
80 changes: 80 additions & 0 deletions docs/Api/UserApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Method | HTTP request | Description
[**deleteUser**](UserApi.md#deleteUser) | **DELETE** /v3/user/delete | Delete user
[**getUser**](UserApi.md#getUser) | **GET** /v3/user | Get user info
[**getUserBlogs**](UserApi.md#getUserBlogs) | **GET** /v3/userBlogs | Get UserBlogs
[**getUsers**](UserApi.md#getUsers) | **GET** /v3/users | Get users who shared data
[**postUserBlogs**](UserApi.md#postUserBlogs) | **POST** /v3/userBlogs | Post UserBlogs
[**postUserSettings**](UserApi.md#postUserSettings) | **POST** /v3/userSettings | Post UserSettings

Expand Down Expand Up @@ -226,6 +227,85 @@ Name | Type | Description | Notes

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **getUsers**
> \QuantiModo\Client\Model\UsersResponse getUsers($user_id, $created_at, $updated_at, $limit, $offset, $sort, $client_id, $app_version, $client_user_id, $platform, $log, $pwd)
Get users who shared data

Returns users who have granted access to their data

### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: access_token
$config = QuantiModo\Client\Configuration::getDefaultConfiguration()->setApiKey('access_token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = QuantiModo\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('access_token', 'Bearer');
// Configure OAuth2 access token for authorization: quantimodo_oauth2
$config = QuantiModo\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new QuantiModo\Client\Api\UserApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$user_id = 8.14; // float | User's id
$created_at = "created_at_example"; // string | When the record was first created. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local.
$updated_at = "updated_at_example"; // string | When the record was last updated. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local.
$limit = 100; // int | The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records.
$offset = 56; // int | OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned.
$sort = "sort_example"; // string | Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order.
$client_id = "client_id_example"; // string | Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do
$app_version = "app_version_example"; // string | Ex: 2.1.1.0
$client_user_id = 56; // int | Ex: 74802
$platform = "platform_example"; // string | Ex: chrome, android, ios, web
$log = "log_example"; // string | Username or email
$pwd = "pwd_example"; // string | User password

try {
$result = $apiInstance->getUsers($user_id, $created_at, $updated_at, $limit, $offset, $sort, $client_id, $app_version, $client_user_id, $platform, $log, $pwd);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UserApi->getUsers: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user_id** | **float**| User&#39;s id | [optional]
**created_at** | **string**| When the record was first created. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. | [optional]
**updated_at** | **string**| When the record was last updated. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. | [optional]
**limit** | **int**| The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. | [optional] [default to 100]
**offset** | **int**| OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. | [optional]
**sort** | **string**| Sort by one of the listed field names. If the field name is prefixed with &#x60;-&#x60;, it will sort in descending order. | [optional]
**client_id** | **string**| Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do | [optional]
**app_version** | **string**| Ex: 2.1.1.0 | [optional]
**client_user_id** | **int**| Ex: 74802 | [optional]
**platform** | **string**| Ex: chrome, android, ios, web | [optional]
**log** | **string**| Username or email | [optional]
**pwd** | **string**| User password | [optional]

### Return type

[**\QuantiModo\Client\Model\UsersResponse**](../Model/UsersResponse.md)

### Authorization

[access_token](../../README.md#access_token), [quantimodo_oauth2](../../README.md#quantimodo_oauth2)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **postUserBlogs**
> \QuantiModo\Client\Model\UserBlogsResponse[] postUserBlogs($sort, $limit, $offset, $updated_at, $user_id, $created_at, $id, $client_id, $platform)
Expand Down
6 changes: 4 additions & 2 deletions docs/Api/VariablesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ This endpoint does not need any parameter.
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **getVariables**
> \QuantiModo\Client\Model\Variable[] getVariables($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise)
> \QuantiModo\Client\Model\Variable[] getVariables($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise, $refresh)
Get variables along with related user-specific analysis settings and statistics

Expand Down Expand Up @@ -246,9 +246,10 @@ $include_tags = true; // bool | Return parent, child, duplicate, and ingredient
$recalculate = true; // bool | Recalculate instead of using cached analysis
$variable_id = 56; // int | Ex: 13
$concise = true; // bool | Only return field required for variable auto-complete searches. The smaller size allows for storing more variable results locally reducing API requests.
$refresh = true; // bool | Regenerate charts instead of getting from the cache

try {
$result = $apiInstance->getVariables($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise);
$result = $apiInstance->getVariables($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise, $refresh);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VariablesApi->getVariables: ', $e->getMessage(), PHP_EOL;
Expand Down Expand Up @@ -300,6 +301,7 @@ Name | Type | Description | Notes
**recalculate** | **bool**| Recalculate instead of using cached analysis | [optional]
**variable_id** | **int**| Ex: 13 | [optional]
**concise** | **bool**| Only return field required for variable auto-complete searches. The smaller size allows for storing more variable results locally reducing API requests. | [optional]
**refresh** | **bool**| Regenerate charts instead of getting from the cache | [optional]

### Return type

Expand Down
6 changes: 6 additions & 0 deletions docs/Model/ActivitiesResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ Name | Type | Description | Notes
**avatar** | **string** | Square icon png url | [optional]
**ion_icon** | **string** | Ex: ion-ios-person | [optional]
**html** | **string** | Embeddable list of study summaries with explanation at the top | [optional]
**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional]
**status** | **string** | ex. OK or ERROR | [optional]
**success** | **bool** | true or false | [optional]
**code** | **float** | Response code such as 200 | [optional]
**link** | **string** | A super neat url you might want to share with your users! | [optional]
**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
6 changes: 3 additions & 3 deletions docs/Model/AppSettings.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ Name | Type | Description | Notes
**app_status** | **object** | What do you expect? | [optional]
**app_type** | **string** | What do you expect? | [optional]
**build_enabled** | **string** | What do you expect? | [optional]
**client_id** | **string** | What do you expect? |
**client_secret** | **string** | What do you expect? | [optional]
**client_id** | **string** | Get yours at https:://builder.quantimo.do |
**client_secret** | **string** | Get yours at https:://builder.quantimo.do | [optional]
**collaborators** | [**\QuantiModo\Client\Model\User[]**](User.md) | What do you expect? | [optional]
**created_at** | **string** | What do you expect? | [optional]
**user_id** | **string** | What do you expect? | [optional]
**user_id** | **int** | User id of the owner of the application | [optional]
**users** | [**\QuantiModo\Client\Model\User[]**](User.md) | What do you expect? | [optional]
**redirect_uri** | **string** | What do you expect? | [optional]
**company_name** | **string** | What do you expect? | [optional]
Expand Down
6 changes: 6 additions & 0 deletions docs/Model/AppSettingsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ Name | Type | Description | Notes
**app_settings** | [**\QuantiModo\Client\Model\AppSettings**](AppSettings.md) | | [optional]
**description** | **string** | Can be used as body of help info popup |
**summary** | **string** | Can be used as title in help info popup |
**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional]
**status** | **string** | ex. OK or ERROR | [optional]
**success** | **bool** | true or false | [optional]
**code** | **float** | Response code such as 200 | [optional]
**link** | **string** | A super neat url you might want to share with your users! | [optional]
**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
6 changes: 6 additions & 0 deletions docs/Model/CommonResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**description** | **string** | Can be used as body of help info popup |
**summary** | **string** | Can be used as title in help info popup |
**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional]
**status** | **string** | ex. OK or ERROR | [optional]
**success** | **bool** | true or false | [optional]
**code** | **float** | Response code such as 200 | [optional]
**link** | **string** | A super neat url you might want to share with your users! | [optional]
**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
10 changes: 10 additions & 0 deletions docs/Model/Error.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Error

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | **string** | Error message |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


6 changes: 6 additions & 0 deletions docs/Model/FeedResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ Name | Type | Description | Notes
**cards** | [**\QuantiModo\Client\Model\Card[]**](Card.md) | |
**description** | **string** | Tracking reminder notifications, messages, and study result cards that can be displayed in user feed or stream |
**summary** | **string** | Tracking reminder notifications, messages, and study results |
**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional]
**status** | **string** | ex. OK or ERROR | [optional]
**success** | **bool** | true or false | [optional]
**code** | **float** | Response code such as 200 | [optional]
**link** | **string** | A super neat url you might want to share with your users! | [optional]
**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
6 changes: 6 additions & 0 deletions docs/Model/FriendsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ Name | Type | Description | Notes
**avatar** | **string** | Square icon png url | [optional]
**ion_icon** | **string** | Ex: ion-ios-person | [optional]
**html** | **string** | Embeddable list of study summaries with explanation at the top | [optional]
**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional]
**status** | **string** | ex. OK or ERROR | [optional]
**success** | **bool** | true or false | [optional]
**code** | **float** | Response code such as 200 | [optional]
**link** | **string** | A super neat url you might want to share with your users! | [optional]
**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
6 changes: 6 additions & 0 deletions docs/Model/GetConnectorsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ Name | Type | Description | Notes
**connectors** | [**\QuantiModo\Client\Model\DataSource[]**](DataSource.md) | | [optional]
**description** | **string** | Can be used as body of help info popup |
**summary** | **string** | Can be used as title in help info popup |
**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional]
**status** | **string** | ex. OK or ERROR | [optional]
**success** | **bool** | true or false | [optional]
**code** | **float** | Response code such as 200 | [optional]
**link** | **string** | A super neat url you might want to share with your users! | [optional]
**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
6 changes: 6 additions & 0 deletions docs/Model/GetCorrelationsDataResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ Name | Type | Description | Notes
**explanation** | [**\QuantiModo\Client\Model\Explanation**](Explanation.md) | |
**description** | **string** | Can be used as body of help info popup | [optional]
**summary** | **string** | Can be used as title in help info popup | [optional]
**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional]
**status** | **string** | ex. OK or ERROR | [optional]
**success** | **bool** | true or false | [optional]
**code** | **float** | Response code such as 200 | [optional]
**link** | **string** | A super neat url you might want to share with your users! | [optional]
**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
6 changes: 6 additions & 0 deletions docs/Model/GetCorrelationsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ Name | Type | Description | Notes
**description** | **string** | Can be used as body of help info popup |
**summary** | **string** | Can be used as title in help info popup |
**avatar** | **string** | Square icon png url | [optional]
**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional]
**status** | **string** | ex. OK or ERROR | [optional]
**success** | **bool** | true or false | [optional]
**code** | **float** | Response code such as 200 | [optional]
**link** | **string** | A super neat url you might want to share with your users! | [optional]
**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Loading

0 comments on commit d7e4def

Please sign in to comment.