Login Authentication Check

SOAP API

URL: http://www.virtualphoneline.com/webservice/CFMSSignInAPI.wsdl
  • Method: CFMSSignInCheck (UserID, Pass)
  • UserID: Numeric Account ID or the email address registered with sandbox.virtualphoneline.com
  • Pass: MD5 Encrypted Password
  • Return Type: String
  • Return Values:
    • Upon successful authentication, the method will return a numeric Account No., else "-1" would be returned.
  • Example Code:
    • try {
    • $client = new SoapClient("http://sandbox.virtualphoneline.com/webservice/CFMSSignInAPI.wsdl", array('trace' => true, 'exceptions' => true));
    • $result = $client->CFMSSignInCheck("302940", md5("aa"));
    • } catch (SoapFault $exception) {
    • echo $client->__getLastRequest();
    • echo $client->__getLastResponse();
    • print_r($exception);
    • }

REST API

URL: https://api.virtualphoneline.com/vplapi/login.php?UID=803465&Pass=8dfb7aa3a0
  • Login API:
  • This method returns the list of User UID, Type, and OID in the form of an array.
  • Required Parameters: User ID and Password
  • Example:
    • https://api.virtualphoneline.com/vplapi/login.php?UID=803465&Pass=8dfb7aa3a0
  • Successful Response:
    • {"UID": "803465", "Type": "User", "OID": "12345"}
  • Unsuccessful Response:
    • {"message": "Access Not Granted!"}