LicenseActivation
in package
Uses
UtilsProvider
Handle Real Product Manager API calls.
Table of Contents
Constants
- ENDPOINT_LICENSE_ACTIVATION = '1.0.0/license/activation'
Properties
- $pluginUpdate : PluginUpdate
- PluginUpdate instance.
Methods
- delete() : mixed
- `DELETE` to the REST API of Real Product Manager.
- get() : mixed
- `GET` to the REST API of Real Product Manager.
- getPluginConstantPrefix() : string
- Get the prefix of this package so we can utils package natively.
- getPluginUpdate() : mixed
- Get plugin update instance.
- instance() : mixed
- New instance.
- patch() : mixed
- `PATCH` to the REST API of Real Product Manager.
- post() : mixed
- `POST` to the REST API of Real Product Manager.
- setupConstants() : mixed
- Make sure the RPM_WP_CLIENT constants are available.
- getClientProperties() : mixed
- Client properties.
- __construct() : mixed
- C'tor.
Constants
ENDPOINT_LICENSE_ACTIVATION
public
mixed
ENDPOINT_LICENSE_ACTIVATION
= '1.0.0/license/activation'
Properties
$pluginUpdate
PluginUpdate instance.
private
PluginUpdate
$pluginUpdate
Methods
delete()
`DELETE` to the REST API of Real Product Manager.
public
delete(string $code, string $uuid) : mixed
Parameters
- $code : string
- $uuid : string
get()
`GET` to the REST API of Real Product Manager.
public
get(string $code, string $uuid) : mixed
Parameters
- $code : string
- $uuid : string
getPluginConstantPrefix()
Get the prefix of this package so we can utils package natively.
public
getPluginConstantPrefix() : string
Return values
stringgetPluginUpdate()
Get plugin update instance.
public
getPluginUpdate() : mixed
Tags
instance()
New instance.
public
static instance(PluginUpdate $pluginUpdate) : mixed
Parameters
- $pluginUpdate : PluginUpdate
Tags
patch()
`PATCH` to the REST API of Real Product Manager.
public
patch(string $code, string $uuid, bool $telemetry) : mixed
Parameters
- $code : string
- $uuid : string
- $telemetry : bool
post()
`POST` to the REST API of Real Product Manager.
public
post([string $code = '' ][, string $uuid = '' ][, string $installationType = 'prod' ][, bool $telemetry = false ][, bool $newsletterOptIn = false ][, string $firstName = '' ][, string $email = '' ]) : mixed
Parameters
- $code : string = ''
- $uuid : string = ''
- $installationType : string = 'prod'
- $telemetry : bool = false
- $newsletterOptIn : bool = false
- $firstName : string = ''
- $email : string = ''
setupConstants()
Make sure the RPM_WP_CLIENT constants are available.
public
static setupConstants() : mixed
getClientProperties()
Client properties.
protected
getClientProperties() : mixed
__construct()
C'tor.
private
__construct(PluginUpdate $pluginUpdate) : mixed
Parameters
- $pluginUpdate : PluginUpdate