Class SpacesResource.MembersResource.GetRequest
Returns details about a membership. For an example, see Get details about a user's or Google Chat app's
membership. Supports the following types of
authentication: - App
authentication - User
authentication You can
authenticate and authorize this method with administrator privileges by setting the use_admin_access
field in the request.
Inheritance
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class SpacesResource.MembersResource.GetRequest : HangoutsChatBaseServiceRequest<Membership>, IClientServiceRequest<Membership>, IClientServiceRequest
Constructors
GetRequest(IClientService, string)
Constructs a new Get request.
Declaration
public GetRequest(IClientService service, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
Required. Resource name of the membership to retrieve. To get the app's own membership by using
user authentication,
you can optionally use spaces/{space}/members/app
. Format: spaces/{space}/members/{member}
or
spaces/{space}/members/app
You can use the user's email as an alias for {member}
. For example,
spaces/{space}/members/example@gmail.com
where example@gmail.com
is the email of the Google Chat
user.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
UseAdminAccess
Optional. When true
, the method runs using the user's Google Workspace administrator privileges.
The calling user must be a Google Workspace administrator with the manage chat and spaces
conversations privilege. Requires the
chat.admin.memberships
or chat.admin.memberships.readonly
OAuth 2.0
scopes.
Getting app memberships in a space isn't supported when using admin access.
Declaration
[RequestParameter("useAdminAccess", RequestParameterType.Query)]
public virtual bool? UseAdminAccess { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Methods
InitParameters()
Initializes Get parameter list.
Declaration
protected override void InitParameters()