Show / Hide Table of Contents

Class UsersResource

The "users" collection of methods.

Inheritance
object
UsersResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.GoogleHealthAPI.v4
Assembly: Google.Apis.GoogleHealthAPI.v4.dll
Syntax
public class UsersResource

Constructors

UsersResource(IClientService)

Constructs a new resource.

Declaration
public UsersResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

DataTypes

Gets the DataTypes resource.

Declaration
public virtual UsersResource.DataTypesResource DataTypes { get; }
Property Value
Type Description
UsersResource.DataTypesResource

Methods

GetIdentity(string)

Gets the user's identity. It includes the legacy Fitbit user ID and the Google user ID and it can be used by migrating clients to map identifiers between the two systems.

Declaration
public virtual UsersResource.GetIdentityRequest GetIdentity(string name)
Parameters
Type Name Description
string name

Required. The resource name of the Identity. Format: users/me/identity

Returns
Type Description
UsersResource.GetIdentityRequest

GetProfile(string)

Returns user Profile details.

Declaration
public virtual UsersResource.GetProfileRequest GetProfile(string name)
Parameters
Type Name Description
string name

Required. The name of the Profile. Format: users/me/profile.

Returns
Type Description
UsersResource.GetProfileRequest

GetSettings(string)

Returns user settings details.

Declaration
public virtual UsersResource.GetSettingsRequest GetSettings(string name)
Parameters
Type Name Description
string name

Required. The name of the Settings. Format: users/me/settings.

Returns
Type Description
UsersResource.GetSettingsRequest

UpdateProfile(Profile, string)

Updates the user's profile details.

Declaration
public virtual UsersResource.UpdateProfileRequest UpdateProfile(Profile body, string name)
Parameters
Type Name Description
Profile body

The body of the request.

string name

Identifier. The resource name of this Profile resource. Format: users/{user}/profile Example: users/1234567890/profile or users/me/profile The {user} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal me can also be used to refer to the authenticated user.

Returns
Type Description
UsersResource.UpdateProfileRequest

UpdateSettings(Settings, string)

Updates the user's settings details.

Declaration
public virtual UsersResource.UpdateSettingsRequest UpdateSettings(Settings body, string name)
Parameters
Type Name Description
Settings body

The body of the request.

string name

Identifier. The resource name of this Settings resource. Format: users/{user}/settings Example: users/1234567890/settings or users/me/settings The {user} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal me can also be used to refer to the authenticated user.

Returns
Type Description
UsersResource.UpdateSettingsRequest
In this article
Back to top Generated by DocFX