Unified in-app VPN SDK's for Microsoft Windows Vista+, Android 4.4+ and Mac OS 10.7+. Earlier OS versions can be supported as well by request. Please contact [email protected] to receive your own API key.

Copyright © 2019 VPNWholesaler.com. All rights reserved.

Back

2.3 CmdProc OS X Example

All SDK functions could be invoked using CmdProc function:

For example for Login function we can use following code:

CmdProc("{\"cmd\" : 1, \"data\" : {\"username\": \"username\", \"password\": \"password\"}}");

Result of this command will be returned using callback method provided on initialization. It will be JSON of the following structure:

{
    "code": NOTIFICATION_CODE,
    "data": {},
    "err": ERROR_CODE
}