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.1 Login OS X Example

Login() function could be written in the following way:

void Login(const char *username, const char *password)
    json_object *j_obj, *j_data_obj;
    char szCmd[1024];
    j_obj = json_object_new_object();
    json_object_object_add(j_obj, "cmd", json_object_new_int(OVS_CMD_LOGIN));
    j_data_obj = json_object_new_object();
    json_object_object_add(j_data_obj, "username", json_object_new_string(username));
    json_object_object_add(j_data_obj, "password", json_object_new_string(password));
    json_object_object_add(j_obj, "data", j_data_obj);
    snprintf(szCmd, sizeof(szCmd), "%s", json_object_get_string(j_obj));

Result will be returned via callback as a JSON:

code will be OVS_NOTIFY_LOGIN

err will be OVS_ERR_OK in case of success

data will be an object with the following fields:

  1. nextduedate
  2. password
  3. status
  4. username
  5. name
  6. email
  7. debug
  8. free