Retrieve a Session
Last updated on
Use the following function to retrieve a session using the session ID:
- Go
- Python
- C#
- Java
ok, err := sessionService.GetSession(input)
if err != nil {
return err
}
return nil
from accelbyte_py_sdk.api.sessionbrowser import get_session
result, error = get_session(
session_id="<session-id>"
)
if error:
print(error)
Session wSBSession = new Session(sdk);
ModelsSessionResponse? gResp = wSBSession.GetSession(
GetSession.Builder
.Build(sdk.Namespace, "<session_id>"));
ModelsSessionResponse gResp = wSBSession.getSession(
GetSession.builder()
.namespace(namespace)
.sessionID(session_id)
.build());