REST API:Obtain a Session ID
From LongJump Support Wiki
Revision as of 21:44, 14 October 2011 by imported>Aeric (Text replace - ' getEnv(' to ' Functions.getEnv(')
To obtain a session ID for use in making a REST request, there are a couple of options:
- Use the getEnv from with the platform
- For methods running inside the platform, use the Java getEnv() method to obtain the session ID:
String sessionID = Functions.getEnv(ENV.SESSION.ID);
- Programmatic login
- Use the code from the Sample Login Client to programmatically log in and obtain the session ID from the response.