polar_accesslink 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -5
- data/README.md +20 -65
- data/Rakefile +0 -2
- data/docs/DailyActivityApi.md +96 -123
- data/docs/ExercisesApi.md +35 -55
- data/docs/NightlyRechargeApi.md +96 -0
- data/docs/PhysicalInfoApi.md +60 -79
- data/docs/PullNotificationsApi.md +11 -20
- data/docs/SleepApi.md +137 -0
- data/docs/TrainingDataApi.md +175 -213
- data/docs/UsersApi.md +33 -56
- data/docs/WebhooksApi.md +43 -80
- data/git_push.sh +55 -0
- data/lib/polar_accesslink.rb +5 -36
- data/lib/polar_accesslink/api/daily_activity_api.rb +101 -201
- data/lib/polar_accesslink/api/exercises_api.rb +43 -81
- data/lib/polar_accesslink/api/nightly_recharge_api.rb +115 -0
- data/lib/polar_accesslink/api/physical_info_api.rb +65 -114
- data/lib/polar_accesslink/api/pull_notifications_api.rb +15 -27
- data/lib/polar_accesslink/api/sleep_api.rb +158 -0
- data/lib/polar_accesslink/api/training_data_api.rb +178 -332
- data/lib/polar_accesslink/api/users_api.rb +42 -96
- data/lib/polar_accesslink/api/webhooks_api.rb +59 -126
- data/lib/polar_accesslink/api_client.rb +45 -41
- data/lib/polar_accesslink/api_error.rb +3 -22
- data/lib/polar_accesslink/configuration.rb +9 -62
- data/lib/polar_accesslink/version.rb +3 -3
- data/polar_accesslink.gemspec +2 -1
- data/spec/api/daily_activity_api_spec.rb +11 -11
- data/spec/api/exercises_api_spec.rb +9 -9
- data/spec/api/nightly_recharge_api_spec.rb +58 -0
- data/spec/api/physical_info_api_spec.rb +9 -9
- data/spec/api/pull_notifications_api_spec.rb +7 -7
- data/spec/api/sleep_api_spec.rb +69 -0
- data/spec/api/training_data_api_spec.rb +16 -15
- data/spec/api/users_api_spec.rb +8 -9
- data/spec/api/webhooks_api_spec.rb +11 -13
- data/spec/api_client_spec.rb +21 -4
- data/spec/configuration_spec.rb +6 -6
- data/spec/spec_helper.rb +3 -3
- metadata +36 -145
- data/docs/Activity.md +0 -33
- data/docs/ActivityLog.md +0 -17
- data/docs/ActivityStepSample.md +0 -19
- data/docs/ActivityStepSamples.md +0 -19
- data/docs/ActivityZoneSample.md +0 -19
- data/docs/ActivityZoneSamples.md +0 -19
- data/docs/AvailableUserData.md +0 -21
- data/docs/AvailableUserDatas.md +0 -17
- data/docs/CreatedWebhook.md +0 -17
- data/docs/CreatedWebhookData.md +0 -23
- data/docs/DurationZone.md +0 -19
- data/docs/Error.md +0 -25
- data/docs/Exercise.md +0 -47
- data/docs/ExerciseHashId.md +0 -45
- data/docs/Exercises.md +0 -17
- data/docs/HeartRate.md +0 -19
- data/docs/PhysicalInformation.md +0 -39
- data/docs/PhysicalInformations.md +0 -17
- data/docs/Register.md +0 -17
- data/docs/Sample.md +0 -21
- data/docs/Samples.md +0 -17
- data/docs/TransactionLocation.md +0 -19
- data/docs/User.md +0 -35
- data/docs/UserExtraInfo.md +0 -21
- data/docs/WebhookInfo.md +0 -17
- data/docs/WebhookInfoData.md +0 -21
- data/docs/WebhookPatch.md +0 -19
- data/docs/WebhookPayload.md +0 -25
- data/docs/WebhookPing.md +0 -19
- data/docs/WebhookRequest.md +0 -19
- data/docs/WebhookType.md +0 -16
- data/docs/Zone.md +0 -23
- data/docs/Zones.md +0 -17
- data/lib/polar_accesslink/models/activity.rb +0 -288
- data/lib/polar_accesslink/models/activity_log.rb +0 -210
- data/lib/polar_accesslink/models/activity_step_sample.rb +0 -218
- data/lib/polar_accesslink/models/activity_step_samples.rb +0 -220
- data/lib/polar_accesslink/models/activity_zone_sample.rb +0 -220
- data/lib/polar_accesslink/models/activity_zone_samples.rb +0 -220
- data/lib/polar_accesslink/models/available_user_data.rb +0 -262
- data/lib/polar_accesslink/models/available_user_datas.rb +0 -210
- data/lib/polar_accesslink/models/created_webhook.rb +0 -206
- data/lib/polar_accesslink/models/created_webhook_data.rb +0 -236
- data/lib/polar_accesslink/models/duration_zone.rb +0 -218
- data/lib/polar_accesslink/models/error.rb +0 -248
- data/lib/polar_accesslink/models/exercise.rb +0 -357
- data/lib/polar_accesslink/models/exercise_hash_id.rb +0 -347
- data/lib/polar_accesslink/models/exercises.rb +0 -210
- data/lib/polar_accesslink/models/heart_rate.rb +0 -218
- data/lib/polar_accesslink/models/physical_information.rb +0 -352
- data/lib/polar_accesslink/models/physical_informations.rb +0 -210
- data/lib/polar_accesslink/models/register.rb +0 -213
- data/lib/polar_accesslink/models/sample.rb +0 -228
- data/lib/polar_accesslink/models/samples.rb +0 -210
- data/lib/polar_accesslink/models/transaction_location.rb +0 -218
- data/lib/polar_accesslink/models/user.rb +0 -334
- data/lib/polar_accesslink/models/user_extra_info.rb +0 -228
- data/lib/polar_accesslink/models/webhook_info.rb +0 -206
- data/lib/polar_accesslink/models/webhook_info_data.rb +0 -226
- data/lib/polar_accesslink/models/webhook_patch.rb +0 -219
- data/lib/polar_accesslink/models/webhook_payload.rb +0 -246
- data/lib/polar_accesslink/models/webhook_ping.rb +0 -252
- data/lib/polar_accesslink/models/webhook_request.rb +0 -229
- data/lib/polar_accesslink/models/webhook_type.rb +0 -37
- data/lib/polar_accesslink/models/zone.rb +0 -238
- data/lib/polar_accesslink/models/zones.rb +0 -210
- data/spec/models/activity_log_spec.rb +0 -41
- data/spec/models/activity_spec.rb +0 -89
- data/spec/models/activity_step_sample_spec.rb +0 -47
- data/spec/models/activity_step_samples_spec.rb +0 -47
- data/spec/models/activity_zone_sample_spec.rb +0 -47
- data/spec/models/activity_zone_samples_spec.rb +0 -47
- data/spec/models/available_user_data_spec.rb +0 -57
- data/spec/models/available_user_datas_spec.rb +0 -41
- data/spec/models/created_webhook_data_spec.rb +0 -59
- data/spec/models/created_webhook_spec.rb +0 -41
- data/spec/models/duration_zone_spec.rb +0 -47
- data/spec/models/error_spec.rb +0 -65
- data/spec/models/exercise_hash_id_spec.rb +0 -125
- data/spec/models/exercise_spec.rb +0 -131
- data/spec/models/exercises_spec.rb +0 -41
- data/spec/models/heart_rate_spec.rb +0 -47
- data/spec/models/physical_information_spec.rb +0 -111
- data/spec/models/physical_informations_spec.rb +0 -41
- data/spec/models/register_spec.rb +0 -41
- data/spec/models/sample_spec.rb +0 -53
- data/spec/models/samples_spec.rb +0 -41
- data/spec/models/transaction_location_spec.rb +0 -47
- data/spec/models/user_extra_info_spec.rb +0 -53
- data/spec/models/user_spec.rb +0 -99
- data/spec/models/webhook_info_data_spec.rb +0 -53
- data/spec/models/webhook_info_spec.rb +0 -41
- data/spec/models/webhook_patch_spec.rb +0 -47
- data/spec/models/webhook_payload_spec.rb +0 -65
- data/spec/models/webhook_ping_spec.rb +0 -51
- data/spec/models/webhook_request_spec.rb +0 -47
- data/spec/models/webhook_type_spec.rb +0 -35
- data/spec/models/zone_spec.rb +0 -59
- data/spec/models/zones_spec.rb +0 -41
data/docs/ActivityStepSamples.md
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# PolarAccesslink::ActivityStepSamples
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**interval** | **Integer** | Sample interval in minutes. | [optional]
|
8
|
-
**samples** | [**Array<ActivityStepSample>**](ActivityStepSample.md) | List of individual step sample objects. | [optional]
|
9
|
-
|
10
|
-
## Code Sample
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
require 'OpenapiClient'
|
14
|
-
|
15
|
-
instance = PolarAccesslink::ActivityStepSamples.new(interval: null,
|
16
|
-
samples: null)
|
17
|
-
```
|
18
|
-
|
19
|
-
|
data/docs/ActivityZoneSample.md
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# PolarAccesslink::ActivityZoneSample
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**activity_zones** | [**Array<DurationZone>**](DurationZone.md) | List of heart rate zones with duration. | [optional]
|
8
|
-
**time** | **String** | Start time of sample segment. | [optional]
|
9
|
-
|
10
|
-
## Code Sample
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
require 'OpenapiClient'
|
14
|
-
|
15
|
-
instance = PolarAccesslink::ActivityZoneSample.new(activity_zones: null,
|
16
|
-
time: null)
|
17
|
-
```
|
18
|
-
|
19
|
-
|
data/docs/ActivityZoneSamples.md
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# PolarAccesslink::ActivityZoneSamples
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**interval** | **Integer** | Sample interval in minutes. | [optional]
|
8
|
-
**samples** | [**Array<ActivityZoneSample>**](ActivityZoneSample.md) | List of individual zone sample objects. | [optional]
|
9
|
-
|
10
|
-
## Code Sample
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
require 'OpenapiClient'
|
14
|
-
|
15
|
-
instance = PolarAccesslink::ActivityZoneSamples.new(interval: null,
|
16
|
-
samples: null)
|
17
|
-
```
|
18
|
-
|
19
|
-
|
data/docs/AvailableUserData.md
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# PolarAccesslink::AvailableUserData
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**user_id** | **Integer** | User identifier who has available data. | [optional]
|
8
|
-
**data_type** | **String** | Type of available data. | [optional]
|
9
|
-
**url** | **String** | URI pointing to transaction initiation endpoint for user | [optional]
|
10
|
-
|
11
|
-
## Code Sample
|
12
|
-
|
13
|
-
```ruby
|
14
|
-
require 'OpenapiClient'
|
15
|
-
|
16
|
-
instance = PolarAccesslink::AvailableUserData.new(user_id: 475,
|
17
|
-
data_type: ACTIVITY_SUMMARY,
|
18
|
-
url: https://www.polaraccesslink.com/v3/users/475/activity-transactions)
|
19
|
-
```
|
20
|
-
|
21
|
-
|
data/docs/AvailableUserDatas.md
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# PolarAccesslink::AvailableUserDatas
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**available_user_data** | [**Array<AvailableUserData>**](AvailableUserData.md) | List of available user datas. | [optional]
|
8
|
-
|
9
|
-
## Code Sample
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'OpenapiClient'
|
13
|
-
|
14
|
-
instance = PolarAccesslink::AvailableUserDatas.new(available_user_data: null)
|
15
|
-
```
|
16
|
-
|
17
|
-
|
data/docs/CreatedWebhook.md
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# PolarAccesslink::CreatedWebhook
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**data** | [**CreatedWebhookData**](CreatedWebhookData.md) | | [optional]
|
8
|
-
|
9
|
-
## Code Sample
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'OpenapiClient'
|
13
|
-
|
14
|
-
instance = PolarAccesslink::CreatedWebhook.new(data: null)
|
15
|
-
```
|
16
|
-
|
17
|
-
|
data/docs/CreatedWebhookData.md
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# PolarAccesslink::CreatedWebhookData
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**id** | **String** | Id of the new webhook. | [optional]
|
8
|
-
**events** | [**WebhookType**](WebhookType.md) | | [optional]
|
9
|
-
**url** | **String** | Url where the webhook notification is sent. | [optional]
|
10
|
-
**signature_secret_key** | **String** | Security key for verifying that sender is actually Polar. | [optional]
|
11
|
-
|
12
|
-
## Code Sample
|
13
|
-
|
14
|
-
```ruby
|
15
|
-
require 'OpenapiClient'
|
16
|
-
|
17
|
-
instance = PolarAccesslink::CreatedWebhookData.new(id: abdf33,
|
18
|
-
events: null,
|
19
|
-
url: https://myapp.example.com/acl_webhook,
|
20
|
-
signature_secret_key: abe1f3ae-fd33-11e8-8eb2-f2801f1b9fd1)
|
21
|
-
```
|
22
|
-
|
23
|
-
|
data/docs/DurationZone.md
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# PolarAccesslink::DurationZone
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**index** | **Integer** | Activity zone index | [optional]
|
8
|
-
**inzone** | **String** | Time duration spent in the zone ISO 8601 | [optional]
|
9
|
-
|
10
|
-
## Code Sample
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
require 'OpenapiClient'
|
14
|
-
|
15
|
-
instance = PolarAccesslink::DurationZone.new(index: 1,
|
16
|
-
inzone: PT51M5S)
|
17
|
-
```
|
18
|
-
|
19
|
-
|
data/docs/Error.md
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
# PolarAccesslink::Error
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**timestamp** | [**Timestamp**](Timestamp.md) | Timestamp of the error. | [optional]
|
8
|
-
**status** | **Integer** | Http status code | [optional]
|
9
|
-
**error_type** | **String** | Error type. | [optional]
|
10
|
-
**message** | **String** | Human readable error message. | [optional]
|
11
|
-
**corr_id** | **String** | Correlation id of the response for problem solving and debugging use. | [optional]
|
12
|
-
|
13
|
-
## Code Sample
|
14
|
-
|
15
|
-
```ruby
|
16
|
-
require 'OpenapiClient'
|
17
|
-
|
18
|
-
instance = PolarAccesslink::Error.new(timestamp: null,
|
19
|
-
status: null,
|
20
|
-
error_type: null,
|
21
|
-
message: null,
|
22
|
-
corr_id: null)
|
23
|
-
```
|
24
|
-
|
25
|
-
|
data/docs/Exercise.md
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
# PolarAccesslink::Exercise
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**id** | **Integer** | Id of the trainining session | [optional]
|
8
|
-
**upload_time** | **String** | Time of the transfer from wrist unit to Polar database | [optional]
|
9
|
-
**polar_user** | **String** | Absolute link to Polar user owning the training | [optional]
|
10
|
-
**transaction_id** | **Integer** | Id of the exercise-transaction this training was transferred in | [optional]
|
11
|
-
**device** | **String** | Polar product used in training | [optional]
|
12
|
-
**start_time** | **String** | Start time of the training session in local time | [optional]
|
13
|
-
**duration** | **String** | The duration of the training session as specified in ISO8601 | [optional]
|
14
|
-
**calories** | **Integer** | Expended calories during training in kilocalories | [optional]
|
15
|
-
**distance** | **Float** | Distance in meters travelled during training | [optional]
|
16
|
-
**heart_rate** | [**HeartRate**](HeartRate.md) | | [optional]
|
17
|
-
**training_load** | **Float** | Training load effect to user | [optional]
|
18
|
-
**sport** | **String** | Sport name | [optional]
|
19
|
-
**has_route** | **Boolean** | Boolean indicating if the exercise has route data | [optional]
|
20
|
-
**club_id** | **Integer** | Has value if the exercise is from \"Flow For Club\", otherwise not printed. Value -1 indicates that there were errors finding the club | [optional]
|
21
|
-
**club_name** | **String** | Has value if the exercise is from \"Flow For Club\", otherwise not printed. Value \"Ambiguous club location. Please contact support.\" is printed in case of error (and the club-id is -1). | [optional]
|
22
|
-
**detailed_sport_info** | **String** | String containing the name of a Polar Flow-compatible sport, if one is set for the exercise. | [optional]
|
23
|
-
|
24
|
-
## Code Sample
|
25
|
-
|
26
|
-
```ruby
|
27
|
-
require 'OpenapiClient'
|
28
|
-
|
29
|
-
instance = PolarAccesslink::Exercise.new(id: 1937529874,
|
30
|
-
upload_time: 2008-10-13T10:40:02.000Z,
|
31
|
-
polar_user: https://www.polaraccesslink/v3/users/1,
|
32
|
-
transaction_id: 179879,
|
33
|
-
device: Polar M400,
|
34
|
-
start_time: 2008-10-13T10:40:02.000Z,
|
35
|
-
duration: PT2H44M,
|
36
|
-
calories: 530,
|
37
|
-
distance: 1600,
|
38
|
-
heart_rate: null,
|
39
|
-
training_load: 143.22,
|
40
|
-
sport: OTHER,
|
41
|
-
has_route: true,
|
42
|
-
club_id: 999,
|
43
|
-
club_name: Polar Club,
|
44
|
-
detailed_sport_info: WATERSPORTS_WATERSKI)
|
45
|
-
```
|
46
|
-
|
47
|
-
|
data/docs/ExerciseHashId.md
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
# PolarAccesslink::ExerciseHashId
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**id** | **String** | Hashed id of the trainining session | [optional]
|
8
|
-
**upload_time** | **String** | Time of the transfer from wrist unit to Polar database | [optional]
|
9
|
-
**polar_user** | **String** | Absolute link to Polar user owning the training | [optional]
|
10
|
-
**device** | **String** | Polar product used in training | [optional]
|
11
|
-
**start_time** | **String** | Start time of the training session in local time | [optional]
|
12
|
-
**duration** | **String** | The duration of the training session as specified in ISO8601 | [optional]
|
13
|
-
**calories** | **Integer** | Expended calories during training in kilocalories | [optional]
|
14
|
-
**distance** | **Float** | Distance in meters travelled during training | [optional]
|
15
|
-
**heart_rate** | [**HeartRate**](HeartRate.md) | | [optional]
|
16
|
-
**training_load** | **Float** | Training load effect to user | [optional]
|
17
|
-
**sport** | **String** | Sport name | [optional]
|
18
|
-
**has_route** | **Boolean** | Boolean indicating if the exercise has route data | [optional]
|
19
|
-
**club_id** | **Integer** | Has value if the exercise is from \"Flow For Club\", otherwise not printed. Value -1 indicates that there were errors finding the club | [optional]
|
20
|
-
**club_name** | **String** | Has value if the exercise is from \"Flow For Club\", otherwise not printed. Value \"Ambiguous club location. Please contact support.\" is printed in case of error (and the club-id is -1). | [optional]
|
21
|
-
**detailed_sport_info** | **String** | String containing the name of a Polar Flow-compatible sport, if one is set for the exercise. | [optional]
|
22
|
-
|
23
|
-
## Code Sample
|
24
|
-
|
25
|
-
```ruby
|
26
|
-
require 'OpenapiClient'
|
27
|
-
|
28
|
-
instance = PolarAccesslink::ExerciseHashId.new(id: 2AC312F,
|
29
|
-
upload_time: 2008-10-13T10:40:02.000Z,
|
30
|
-
polar_user: https://www.polaraccesslink/v3/users/1,
|
31
|
-
device: Polar M400,
|
32
|
-
start_time: 2008-10-13T10:40:02.000Z,
|
33
|
-
duration: PT2H44M,
|
34
|
-
calories: 530,
|
35
|
-
distance: 1600,
|
36
|
-
heart_rate: null,
|
37
|
-
training_load: 143.22,
|
38
|
-
sport: OTHER,
|
39
|
-
has_route: true,
|
40
|
-
club_id: 999,
|
41
|
-
club_name: Polar Club,
|
42
|
-
detailed_sport_info: WATERSPORTS_WATERSKI)
|
43
|
-
```
|
44
|
-
|
45
|
-
|
data/docs/Exercises.md
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# PolarAccesslink::Exercises
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**exercises** | **Array<String>** | Absolute links to individual exercises within the transaction | [optional]
|
8
|
-
|
9
|
-
## Code Sample
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'OpenapiClient'
|
13
|
-
|
14
|
-
instance = PolarAccesslink::Exercises.new(exercises: ["https://www.polaraccesslink.com/v3/users/12/exercise-transactions/34/exercises/56","https://www.polaraccesslink.com/v3/users/12/exercise-transactions/34/exercises/120"])
|
15
|
-
```
|
16
|
-
|
17
|
-
|
data/docs/HeartRate.md
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# PolarAccesslink::HeartRate
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**average** | **Integer** | Average heart-rate | [optional]
|
8
|
-
**maximum** | **Integer** | Maximum heart-rate | [optional]
|
9
|
-
|
10
|
-
## Code Sample
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
require 'OpenapiClient'
|
14
|
-
|
15
|
-
instance = PolarAccesslink::HeartRate.new(average: 129,
|
16
|
-
maximum: 147)
|
17
|
-
```
|
18
|
-
|
19
|
-
|
data/docs/PhysicalInformation.md
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
# PolarAccesslink::PhysicalInformation
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**id** | **Integer** | Physical information id | [optional]
|
8
|
-
**transaction_id** | **Integer** | Id of the physical-information-transaction this training was transferred in | [optional]
|
9
|
-
**created** | **String** | The time physical information was created in Accesslink, in format YYYY-MM-DDTHH:mm:ss.SSS | [optional]
|
10
|
-
**polar_user** | **String** | Absolute link to user owning the activity | [optional]
|
11
|
-
**weight** | **Float** | Height | [optional]
|
12
|
-
**height** | **Float** | Height | [optional]
|
13
|
-
**maximum_heart_rate** | **Integer** | Maximum heart rate | [optional]
|
14
|
-
**resting_heart_rate** | **Integer** | Resting hear rate | [optional]
|
15
|
-
**aerobic_threshold** | **Integer** | Aerobic threshold | [optional]
|
16
|
-
**anaerobic_threshold** | **Integer** | Anaerobic threshold | [optional]
|
17
|
-
**vo2_max** | **Integer** | VO2 max | [optional]
|
18
|
-
**weight_source** | **String** | Weight source | [optional]
|
19
|
-
|
20
|
-
## Code Sample
|
21
|
-
|
22
|
-
```ruby
|
23
|
-
require 'OpenapiClient'
|
24
|
-
|
25
|
-
instance = PolarAccesslink::PhysicalInformation.new(id: 123,
|
26
|
-
transaction_id: 179879,
|
27
|
-
created: 2016-04-27T20:11:33.000Z,
|
28
|
-
polar_user: https://www.polaraccesslink/v3/users/1,
|
29
|
-
weight: 80,
|
30
|
-
height: 180,
|
31
|
-
maximum_heart_rate: 160,
|
32
|
-
resting_heart_rate: 60,
|
33
|
-
aerobic_threshold: 123,
|
34
|
-
anaerobic_threshold: 123,
|
35
|
-
vo2_max: 12,
|
36
|
-
weight_source: SOURCE_MEASURED)
|
37
|
-
```
|
38
|
-
|
39
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# PolarAccesslink::PhysicalInformations
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**physical_informations** | **Array<String>** | Absolute links to individual physical informations within the transaction | [optional]
|
8
|
-
|
9
|
-
## Code Sample
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'OpenapiClient'
|
13
|
-
|
14
|
-
instance = PolarAccesslink::PhysicalInformations.new(physical_informations: ["https://www.polaraccesslink.com/v3/users/12/physical-information-transactions/12/physical-informations/56","https://www.polaraccesslink.com/v3/users/12/physical-information-transactions/12/physical-informations/120"])
|
15
|
-
```
|
16
|
-
|
17
|
-
|
data/docs/Register.md
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# PolarAccesslink::Register
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**member_id** | **String** | Partner's custom identifier for user. |
|
8
|
-
|
9
|
-
## Code Sample
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'OpenapiClient'
|
13
|
-
|
14
|
-
instance = PolarAccesslink::Register.new(member_id: User_id_999)
|
15
|
-
```
|
16
|
-
|
17
|
-
|
data/docs/Sample.md
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# PolarAccesslink::Sample
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**recording_rate** | **Integer** | Sample recording rate in seconds. Null when recording rate is not applicable - currently only with RR-data. | [optional]
|
8
|
-
**sample_type** | **String** | Sample type | [optional]
|
9
|
-
**data** | **String** | Sample values as a comma-separated list of strings. Can contain null -values which indicate a situtation where sensor was offline. | [optional]
|
10
|
-
|
11
|
-
## Code Sample
|
12
|
-
|
13
|
-
```ruby
|
14
|
-
require 'OpenapiClient'
|
15
|
-
|
16
|
-
instance = PolarAccesslink::Sample.new(recording_rate: 5,
|
17
|
-
sample_type: null,
|
18
|
-
data: 0,100,102,97,97,101,103,106,96,89,88,87,98,108,113,112,114,115,118,121,121,121,121,123,117,119,122)
|
19
|
-
```
|
20
|
-
|
21
|
-
|
data/docs/Samples.md
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# PolarAccesslink::Samples
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**sample** | **Array<String>** | List of URIs pointing to single sample type data. | [optional]
|
8
|
-
|
9
|
-
## Code Sample
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'OpenapiClient'
|
13
|
-
|
14
|
-
instance = PolarAccesslink::Samples.new(sample: ["https://www.polaraccesslink.com/v3/users/12/exercise-transactions/34/exercises/56/samples/0","https://www.polaraccesslink.com/v3/users/12/exercise-transactions/34/exercises/56/samples/3"])
|
15
|
-
```
|
16
|
-
|
17
|
-
|