All URIs are relative to https://localhost
Method | HTTP request | Description |
---|---|---|
delete_user | DELETE /v3/users/{user-id} | Delete user |
get_user_information | GET /v3/users/{user-id} | Get user information |
register_user | POST /v3/users | Register user |
delete_user(user_id)
Delete user
When partner wishes no longer to receive user data, user can be de-registered.This will revoke the access token authorized by user.
# load the gem
require 'polar_accesslink'
api_instance = PolarAccesslink::UsersApi.new
user_id = nil # Object | User identifier
begin
#Delete user
api_instance.delete_user(user_id)
rescue PolarAccesslink::ApiError => e
puts "Exception when calling UsersApi->delete_user: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
user_id | Object | User identifier |
nil (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
get_user_information(user_id)
Get user information
List user basic information. Note: Although it is possible to get users weight and height from this resource, the get physical info should be used instead.
# load the gem
require 'polar_accesslink'
api_instance = PolarAccesslink::UsersApi.new
user_id = nil # Object | User identifier
begin
#Get user information
api_instance.get_user_information(user_id)
rescue PolarAccesslink::ApiError => e
puts "Exception when calling UsersApi->get_user_information: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
user_id | Object | User identifier |
nil (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
register_user
Register user
Once partner has been authorized by user, partner must register user before being able to access her data.
# load the gem
require 'polar_accesslink'
api_instance = PolarAccesslink::UsersApi.new
begin
#Register user
api_instance.register_user
rescue PolarAccesslink::ApiError => e
puts "Exception when calling UsersApi->register_user: #{e}"
end
This endpoint does not need any parameter.
nil (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined