\MainWP\DashboardMainWP_Api_Manager_Key

Class MainWP_Api_Manager_Key

MainWP Api Manager Key handler This class handles user authentication with MainWP.com License Servers and provides the ability to grab License Keys automatically.

Summary

Methods
Properties
Constants
instance()
__construct()
activate()
deactivate()
grab_api_key()
test_login_api()
get_purchased_software()
purchase_software()
No public properties found
No constants found
No protected methods found
$instance
$apisslverify
N/A
No private methods found
No private properties found
N/A

Properties

$instance

$instance : null

Set initial $instance value.

Type

null

$apisslverify

$apisslverify : integer

Set initial $apisslverify value.

Type

integer

Methods

instance()

instance() : mixed

Create a new Self Instance.

Returns

mixed —

self::$instance

__construct()

__construct() 

MainWP_Api_Manager_Key constructor.

Run any time class is called. Validate SSL certificate.

activate()

activate(array  $args) : array

Activate extension.

This function checks the users login information & grabs the update URL for the specific extension & activates it.

Parameters

array $args

Extension arguments.

Returns

array —

Request response.

deactivate()

deactivate(array  $args) : array

Deactivate extension .

This function checks the users login information & grabs the update URL for the specific extension & deactivates it.

Parameters

array $args

Extension arguments.

Returns

array —

Request response.

grab_api_key()

grab_api_key(array  $args) : array

Grab extension API Key.

This function checks the users login information & grabs the update URL for the specific extension & returns the API Key.

Parameters

array $args

Extension arguments.

Returns

array —

Request response.

test_login_api()

test_login_api(\MainWP\Dashboard\aray  $args) : array

Test login API.

This function checks the users login information & Tests it against the MainWP.com Login Credentials stored on the license server.

Parameters

\MainWP\Dashboard\aray $args

Login arguments.

Throws

\Exception

Request error codes.

Returns

array —

Request response.

get_purchased_software()

get_purchased_software(array  $args) : array

Get purchased software.

This function grabs a list of purchased MainWP Extensions that are available for download.

Parameters

array $args

Software Arguments.

Returns

array —

Request response.

purchase_software()

purchase_software(array  $args) : array

Purchase software.

Parameters

array $args

Software arguments.

Returns

array —

Request response.