Hi. For my database I have added some extra fields to the User collection. So after login I have a function called getUser to retrieve the whole user record. But this is the same procedure for any function that needs the session token. So if your function is called getData then in the code below replace getUser with getData.
Drag your service call to the function and in the "requestdata" mapping do it like this:
codevar requestData = {};
requestData = (function mapping9326($scope){
var requestData = {};
requestData.headers = Apperyio.EntityAPI('getUser.request.headers', undefined, true);
requestData.headers['X-Appery-Session-Token'] = $scope.sessionToken.id;
})($scope);
Apperyio.get("getUser")(requestData).then(
function(success){ // success callback
/code
Just for your reference, on functions that need to pass parameters into the function call you can get access to those in a similar way:
coderequestData.params= Apperyio.EntityAPI('getUser_query_service.request.query', undefined, true);
requestData.params.sort="Name"
...
/code