GetSessionId API
- 1 Minute to read
- Print
- DarkLight
- PDF
GetSessionId API
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Retrieves the session id for the current user session.
Syntax
SessionId = api.getSessionId()
Usage
Use the GetSessionId to retrieve the session id for the current user session. Upon invocation, the Web Service returns the session id of the current user session. The Client application can then use methods on the session id and retrieve information. The Client application must be logged in with sufficient access rights to retrieve the session id.
Response
SessionId
The GetSessionId method call returns session id of the current user session.
Sample Code
Private Sub getSessionId()
Dim api As New HostAPI()
Dim strSessionId As String = ""
Try
'Call the web method to retrieve the current session ID
strSessionId = api.getSessionId()
Console.WriteLine(strSessionId)
Catch ex As Exception
End Try
End Sub
Was this article helpful?