Unified in-app VPN SDK's for Microsoft Windows Vista+, Android 4.4+, Mac OS 10.7+, iOS 9.0+, Ubuntu Linux LTS 18.04+. 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.


3.23 addClient Android Example

I. Providing JSON as a parameter:

VPNSDK.CmdProc("{\"cmd\": 21, \"data\": {\"email\": \"[email protected]\", \"password\": \"123456\", \"countrycode\": \"US\", \"type\": \"1\"}}");

Result of this command will be returned using onNotify method provided on initialization

II. Convenient form:

VPNSDK.CommandNotifyCB callback = new VPNSDK.CommandNotifyCB() {
        public void onNotify(int notification, int error, Object data) {
            if (error == VPNSDK.OVS_ERROR_CODES.OVS_ERR_OK) {
                // Do something when command is successful
            } else {
                // Process error
VPNSDK.CmdProc(VPNSDK.OVS_CMD_CODES.OVS_CMD_ADD_CLIENT, callback, "[email protected]", "123456", "US", "1");

This form of method accepts following parameters:

  1. Command code
  2. Callback to be invoked after command execution
  3. Email
  4. Password
  5. Country code
  6. Client type

data parameter of callback will be null. Result could be determined based on error parameter of callback.