Created
April 20, 2014 13:59
-
-
Save jreypo/11114795 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Check operation status for success or failure | |
responseArray = (apiResponse.contentAsString).split("\n"); | |
responseElement = responseArray[1]; | |
System.log(responseElement); | |
var operationStatus = responseElement.indexOf("status\=\"success\""); | |
if (operationStatus != -1) { | |
var loginStatus = "OK"; | |
System.log("Status OK"); | |
} else { | |
var loginStatus = "NOK"; | |
System.log("Status NOK"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment