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
@@ -0,0 +1,58 @@
|
|
1
|
+
=begin
|
2
|
+
#Polar Accesslink API
|
3
|
+
|
4
|
+
#Polar Accesslink API documentation
|
5
|
+
|
6
|
+
OpenAPI spec version: 3.59.0
|
7
|
+
Contact: b2bhelpdesk@polar.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.16
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PolarAccesslink::NightlyRechargeApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'NightlyRechargeApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = PolarAccesslink::NightlyRechargeApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of NightlyRechargeApi' do
|
30
|
+
it 'should create an instance of NightlyRechargeApi' do
|
31
|
+
expect(@instance).to be_instance_of(PolarAccesslink::NightlyRechargeApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for list_nightly_recharge
|
36
|
+
# List Nightly Recharges
|
37
|
+
# List Nightly Recharge data of user for the last 28 days.
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [nil]
|
40
|
+
describe 'list_nightly_recharge test' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for v3_users_nightly_recharge_date_get
|
47
|
+
# Get Nightly Recharge
|
48
|
+
# Get Users Nightly Recharge data for given date.
|
49
|
+
# @param date Date of Nightly Recharge as ISO-8601 date string, example: \"2020-01-01\"
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @return [nil]
|
52
|
+
describe 'v3_users_nightly_recharge_date_get test' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Polar Accesslink API documentation
|
5
5
|
|
6
|
-
|
6
|
+
OpenAPI spec version: 3.59.0
|
7
7
|
Contact: b2bhelpdesk@polar.com
|
8
|
-
Generated by: https://
|
9
|
-
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.16
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,12 +14,12 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
|
16
16
|
# Unit tests for PolarAccesslink::PhysicalInfoApi
|
17
|
-
# Automatically generated by
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'PhysicalInfoApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@
|
22
|
+
@instance = PolarAccesslink::PhysicalInfoApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
@@ -28,7 +28,7 @@ describe 'PhysicalInfoApi' do
|
|
28
28
|
|
29
29
|
describe 'test an instance of PhysicalInfoApi' do
|
30
30
|
it 'should create an instance of PhysicalInfoApi' do
|
31
|
-
expect(@
|
31
|
+
expect(@instance).to be_instance_of(PolarAccesslink::PhysicalInfoApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -50,7 +50,7 @@ describe 'PhysicalInfoApi' do
|
|
50
50
|
# Initiate physical info transaction. Check for new physical info and create a new transaction if found.
|
51
51
|
# @param user_id User identifier
|
52
52
|
# @param [Hash] opts the optional parameters
|
53
|
-
# @return [
|
53
|
+
# @return [nil]
|
54
54
|
describe 'create_physical_info_transaction test' do
|
55
55
|
it 'should work' do
|
56
56
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -64,7 +64,7 @@ describe 'PhysicalInfoApi' do
|
|
64
64
|
# @param transaction_id Transaction identifier
|
65
65
|
# @param physical_info_id Physical information identifier
|
66
66
|
# @param [Hash] opts the optional parameters
|
67
|
-
# @return [
|
67
|
+
# @return [nil]
|
68
68
|
describe 'get_physical_info test' do
|
69
69
|
it 'should work' do
|
70
70
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -77,7 +77,7 @@ describe 'PhysicalInfoApi' do
|
|
77
77
|
# @param transaction_id Transaction identifier
|
78
78
|
# @param user_id User identifier
|
79
79
|
# @param [Hash] opts the optional parameters
|
80
|
-
# @return [
|
80
|
+
# @return [nil]
|
81
81
|
describe 'list_physical_infos test' do
|
82
82
|
it 'should work' do
|
83
83
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Polar Accesslink API documentation
|
5
5
|
|
6
|
-
|
6
|
+
OpenAPI spec version: 3.59.0
|
7
7
|
Contact: b2bhelpdesk@polar.com
|
8
|
-
Generated by: https://
|
9
|
-
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.16
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,12 +14,12 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
|
16
16
|
# Unit tests for PolarAccesslink::PullNotificationsApi
|
17
|
-
# Automatically generated by
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'PullNotificationsApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@
|
22
|
+
@instance = PolarAccesslink::PullNotificationsApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
@@ -28,7 +28,7 @@ describe 'PullNotificationsApi' do
|
|
28
28
|
|
29
29
|
describe 'test an instance of PullNotificationsApi' do
|
30
30
|
it 'should create an instance of PullNotificationsApi' do
|
31
|
-
expect(@
|
31
|
+
expect(@instance).to be_instance_of(PolarAccesslink::PullNotificationsApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -36,7 +36,7 @@ describe 'PullNotificationsApi' do
|
|
36
36
|
# List
|
37
37
|
# Get list of available exercises and activities for users
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
|
-
# @return [
|
39
|
+
# @return [nil]
|
40
40
|
describe 'list test' do
|
41
41
|
it 'should work' do
|
42
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -0,0 +1,69 @@
|
|
1
|
+
=begin
|
2
|
+
#Polar Accesslink API
|
3
|
+
|
4
|
+
#Polar Accesslink API documentation
|
5
|
+
|
6
|
+
OpenAPI spec version: 3.59.0
|
7
|
+
Contact: b2bhelpdesk@polar.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.16
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PolarAccesslink::SleepApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'SleepApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = PolarAccesslink::SleepApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of SleepApi' do
|
30
|
+
it 'should create an instance of SleepApi' do
|
31
|
+
expect(@instance).to be_instance_of(PolarAccesslink::SleepApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for list_nights
|
36
|
+
# List nights
|
37
|
+
# List sleep data of user for the last 28 days.
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [nil]
|
40
|
+
describe 'list_nights test' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for v3_users_sleep_available_get
|
47
|
+
# Get available sleep times
|
48
|
+
# Get the dates with sleep start and end times, where user has sleep data available in the last 28 days.
|
49
|
+
# @param [Hash] opts the optional parameters
|
50
|
+
# @return [nil]
|
51
|
+
describe 'v3_users_sleep_available_get test' do
|
52
|
+
it 'should work' do
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# unit tests for v3_users_sleep_date_get
|
58
|
+
# Get Sleep
|
59
|
+
# Get Users sleep data for given date.
|
60
|
+
# @param date Date of sleep as ISO-8601 date string, example: \"2020-01-01\"
|
61
|
+
# @param [Hash] opts the optional parameters
|
62
|
+
# @return [nil]
|
63
|
+
describe 'v3_users_sleep_date_get test' do
|
64
|
+
it 'should work' do
|
65
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Polar Accesslink API documentation
|
5
5
|
|
6
|
-
|
6
|
+
OpenAPI spec version: 3.59.0
|
7
7
|
Contact: b2bhelpdesk@polar.com
|
8
|
-
Generated by: https://
|
9
|
-
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.16
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,12 +14,12 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
|
16
16
|
# Unit tests for PolarAccesslink::TrainingDataApi
|
17
|
-
# Automatically generated by
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'TrainingDataApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@
|
22
|
+
@instance = PolarAccesslink::TrainingDataApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
@@ -28,7 +28,7 @@ describe 'TrainingDataApi' do
|
|
28
28
|
|
29
29
|
describe 'test an instance of TrainingDataApi' do
|
30
30
|
it 'should create an instance of TrainingDataApi' do
|
31
|
-
expect(@
|
31
|
+
expect(@instance).to be_instance_of(PolarAccesslink::TrainingDataApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -50,7 +50,7 @@ describe 'TrainingDataApi' do
|
|
50
50
|
# Check for new training data and create a new transaction if found.
|
51
51
|
# @param user_id User identifier
|
52
52
|
# @param [Hash] opts the optional parameters
|
53
|
-
# @return [
|
53
|
+
# @return [nil]
|
54
54
|
describe 'create_exercise_transaction test' do
|
55
55
|
it 'should work' do
|
56
56
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -64,7 +64,7 @@ describe 'TrainingDataApi' do
|
|
64
64
|
# @param transaction_id Transaction identifier
|
65
65
|
# @param exercise_id Exercise identifier
|
66
66
|
# @param [Hash] opts the optional parameters
|
67
|
-
# @return [
|
67
|
+
# @return [nil]
|
68
68
|
describe 'get_available_samples test' do
|
69
69
|
it 'should work' do
|
70
70
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -78,7 +78,7 @@ describe 'TrainingDataApi' do
|
|
78
78
|
# @param transaction_id Transaction identifier
|
79
79
|
# @param exercise_id Exercise identifier
|
80
80
|
# @param [Hash] opts the optional parameters
|
81
|
-
# @return [
|
81
|
+
# @return [nil]
|
82
82
|
describe 'get_exercise_summary test' do
|
83
83
|
it 'should work' do
|
84
84
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -92,7 +92,7 @@ describe 'TrainingDataApi' do
|
|
92
92
|
# @param transaction_id Transaction identifier
|
93
93
|
# @param exercise_id Exercise identifier
|
94
94
|
# @param [Hash] opts the optional parameters
|
95
|
-
# @return [
|
95
|
+
# @return [nil]
|
96
96
|
describe 'get_fit test' do
|
97
97
|
it 'should work' do
|
98
98
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -106,7 +106,8 @@ describe 'TrainingDataApi' do
|
|
106
106
|
# @param transaction_id Transaction identifier
|
107
107
|
# @param exercise_id Exercise identifier
|
108
108
|
# @param [Hash] opts the optional parameters
|
109
|
-
# @
|
109
|
+
# @option opts [Object] :include_pause_times Whether to add pauses as part of the route. Default is false.
|
110
|
+
# @return [nil]
|
110
111
|
describe 'get_gpx test' do
|
111
112
|
it 'should work' do
|
112
113
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -120,7 +121,7 @@ describe 'TrainingDataApi' do
|
|
120
121
|
# @param transaction_id Transaction identifier
|
121
122
|
# @param exercise_id Exercise identifier
|
122
123
|
# @param [Hash] opts the optional parameters
|
123
|
-
# @return [
|
124
|
+
# @return [nil]
|
124
125
|
describe 'get_heart_rate_zones test' do
|
125
126
|
it 'should work' do
|
126
127
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -135,7 +136,7 @@ describe 'TrainingDataApi' do
|
|
135
136
|
# @param transaction_id Transaction identifier
|
136
137
|
# @param exercise_id Exercise identifier
|
137
138
|
# @param [Hash] opts the optional parameters
|
138
|
-
# @return [
|
139
|
+
# @return [nil]
|
139
140
|
describe 'get_samples test' do
|
140
141
|
it 'should work' do
|
141
142
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -149,7 +150,7 @@ describe 'TrainingDataApi' do
|
|
149
150
|
# @param transaction_id Transaction identifier
|
150
151
|
# @param exercise_id Exercise identifier
|
151
152
|
# @param [Hash] opts the optional parameters
|
152
|
-
# @return [
|
153
|
+
# @return [nil]
|
153
154
|
describe 'get_tcx test' do
|
154
155
|
it 'should work' do
|
155
156
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -162,7 +163,7 @@ describe 'TrainingDataApi' do
|
|
162
163
|
# @param transaction_id Transaction identifier
|
163
164
|
# @param user_id User identifier
|
164
165
|
# @param [Hash] opts the optional parameters
|
165
|
-
# @return [
|
166
|
+
# @return [nil]
|
166
167
|
describe 'list_exercises test' do
|
167
168
|
it 'should work' do
|
168
169
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/api/users_api_spec.rb
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Polar Accesslink API documentation
|
5
5
|
|
6
|
-
|
6
|
+
OpenAPI spec version: 3.59.0
|
7
7
|
Contact: b2bhelpdesk@polar.com
|
8
|
-
Generated by: https://
|
9
|
-
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.16
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,12 +14,12 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
|
16
16
|
# Unit tests for PolarAccesslink::UsersApi
|
17
|
-
# Automatically generated by
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'UsersApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@
|
22
|
+
@instance = PolarAccesslink::UsersApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
@@ -28,7 +28,7 @@ describe 'UsersApi' do
|
|
28
28
|
|
29
29
|
describe 'test an instance of UsersApi' do
|
30
30
|
it 'should create an instance of UsersApi' do
|
31
|
-
expect(@
|
31
|
+
expect(@instance).to be_instance_of(PolarAccesslink::UsersApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -49,7 +49,7 @@ describe 'UsersApi' do
|
|
49
49
|
# List user basic information. Note: Although it is possible to get users weight and height from this resource, the [get physical info](#get-physical-info) should be used instead.
|
50
50
|
# @param user_id User identifier
|
51
51
|
# @param [Hash] opts the optional parameters
|
52
|
-
# @return [
|
52
|
+
# @return [nil]
|
53
53
|
describe 'get_user_information test' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -59,9 +59,8 @@ describe 'UsersApi' do
|
|
59
59
|
# unit tests for register_user
|
60
60
|
# Register user
|
61
61
|
# Once partner has been authorized by user, partner must register user before being able to access her data.
|
62
|
-
# @param register
|
63
62
|
# @param [Hash] opts the optional parameters
|
64
|
-
# @return [
|
63
|
+
# @return [nil]
|
65
64
|
describe 'register_user test' do
|
66
65
|
it 'should work' do
|
67
66
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Polar Accesslink API documentation
|
5
5
|
|
6
|
-
|
6
|
+
OpenAPI spec version: 3.59.0
|
7
7
|
Contact: b2bhelpdesk@polar.com
|
8
|
-
Generated by: https://
|
9
|
-
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.16
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,12 +14,12 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
|
16
16
|
# Unit tests for PolarAccesslink::WebhooksApi
|
17
|
-
# Automatically generated by
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'WebhooksApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@
|
22
|
+
@instance = PolarAccesslink::WebhooksApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
@@ -28,16 +28,15 @@ describe 'WebhooksApi' do
|
|
28
28
|
|
29
29
|
describe 'test an instance of WebhooksApi' do
|
30
30
|
it 'should create an instance of WebhooksApi' do
|
31
|
-
expect(@
|
31
|
+
expect(@instance).to be_instance_of(PolarAccesslink::WebhooksApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for create_webhook
|
36
36
|
# Create webhook
|
37
|
-
# Create new webhook. When creating webhook the Accesslink sends a ping message to the url in request body. The ping message must be answered with 200 OK or otherwise the webhook is not created. **Note!** Save the *signature_secret_key* from response since this is the only chance to get it.
|
38
|
-
# @param webhook_request Webhook to create.
|
37
|
+
# Create new webhook. When creating webhook the Accesslink sends a ping message to the url in request body. The ping message must be answered with 200 OK or otherwise the webhook is not created. **Note!** Save the *signature_secret_key* from response since this is the only chance to get it. **Please also note** that currently there is an issue with SLEEP event delivery. You can still subscribe to them but you will not receive SLEEP events through the webhook at the moment. We are working on fixing the issue and you will start to receive SLEEP events eventually.
|
39
38
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [
|
39
|
+
# @return [nil]
|
41
40
|
describe 'create_webhook test' do
|
42
41
|
it 'should work' do
|
43
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -60,7 +59,7 @@ describe 'WebhooksApi' do
|
|
60
59
|
# Get webhook
|
61
60
|
# Returns created webhook if exists.
|
62
61
|
# @param [Hash] opts the optional parameters
|
63
|
-
# @return [
|
62
|
+
# @return [nil]
|
64
63
|
describe 'get_webhook test' do
|
65
64
|
it 'should work' do
|
66
65
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -69,11 +68,10 @@ describe 'WebhooksApi' do
|
|
69
68
|
|
70
69
|
# unit tests for update_webhook
|
71
70
|
# Update webhook
|
72
|
-
# Edit webhook event types and/or url. When updating webhook url the Accesslink sends a ping message to the new address. The ping message must be answered with 200 OK or otherwise the webhook is not updated.
|
71
|
+
# Edit webhook event types and/or url. When updating webhook url the Accesslink sends a ping message to the new address. The ping message must be answered with 200 OK or otherwise the webhook is not updated. **Please note** that currently there is an issue with SLEEP event delivery. You can still subscribe to them but you will not receive SLEEP events through the webhook at the moment. We are working on fixing the issue and you will start to receive SLEEP events eventually.
|
73
72
|
# @param webhook_id Webhook id to update
|
74
|
-
# @param webhook_patch New value(s) for events and/or url.
|
75
73
|
# @param [Hash] opts the optional parameters
|
76
|
-
# @return [
|
74
|
+
# @return [nil]
|
77
75
|
describe 'update_webhook test' do
|
78
76
|
it 'should work' do
|
79
77
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|