Returns a new temporary user token for this user. This temporary token is valid for only 5 minutes.
User Token must be kept secret and transferred only over SSL, as it's effectively as good as a user's email and password.
The following are the examples of HTTP status codes including errors that API can generate
Everything worked correctly. Temporary token has been retrieved.
sig is empty
Missing required 'sig' header
teamid is empty
Missing required 'teamid' header
404 Not Found
Object not found
User with this UserKey not found.
For authorization in Slemma use the Java script to send a POST request to a specific dashboard (for example, https://slemma.com/infographics/634862) with the received temporary token (parameter name is 'token') and team identifier (parameter name is 'teamid').
<form action="https://slemma.com/infographics/634862" target="_blank" method="POST"> Team ID <input type="text" name="teamid"> <br/> Temporary token <input type="text" name="token"> <br/> <input type="submit"> </form>
After successful authorization, the target dashboard will open.