Class ProjectsResource.LocationsResource.AppsResource.SessionsResource
The "sessions" collection of methods.
Inherited Members
Namespace: Google.Apis.CustomerEngagementSuite.v1beta
Assembly: Google.Apis.CustomerEngagementSuite.v1beta.dll
Syntax
public class ProjectsResource.LocationsResource.AppsResource.SessionsResource
Constructors
SessionsResource(IClientService)
Constructs a new resource.
Declaration
public SessionsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
GenerateChatToken(GenerateChatTokenRequest, string)
Generates a session scoped token for chat widget to authenticate with Session APIs.
Declaration
public virtual ProjectsResource.LocationsResource.AppsResource.SessionsResource.GenerateChatTokenRequest GenerateChatToken(GenerateChatTokenRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| GenerateChatTokenRequest | body | The body of the request. |
| string | name | Required. The session name to generate the chat token for. Format: projects/{project}/locations/{location}/apps/{app}/sessions/{session} |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.AppsResource.SessionsResource.GenerateChatTokenRequest |
RunSession(RunSessionRequest, string)
Initiates a single turn interaction with the CES agent within a session.
Declaration
public virtual ProjectsResource.LocationsResource.AppsResource.SessionsResource.RunSessionRequest RunSession(RunSessionRequest body, string session)
Parameters
| Type | Name | Description |
|---|---|---|
| RunSessionRequest | body | The body of the request. |
| string | session | Required. The unique identifier of the session. Format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.AppsResource.SessionsResource.RunSessionRequest |