ePages 7.3.0 - DE_EPAGES/EasyMarketing/API/OAuth/EpagesApiToken.pm

Package DE_EPAGES::EasyMarketing::API::OAuth::EpagesApiToken

Represents credentials for the ePages REST API consisting of a hash with AccessToken and TokenSecret.

Functions

create
delete
encrypt
new
saveInDatabase
sendToken

create

Creates the ePages API Access Token

Syntax
create( );
Return
(Boolean)
Status flag

delete

Delete the ePages API Access Token

Syntax
delete( );
Return
(Boolean)
Status flag

encrypt

Encrypts the ePages API credentials using AES.

Syntax
encrypt( );
Return
(String)
Status string

new

Creates an ePages API Token.

Syntax
new( $Shop );
Input
$Shop (DE_EPAGES::Shop::API::Object::Shop)
Shop
Return
(DE_EPAGES::EasyMarketing::API::OAuth::EpagesApiToken)
Object

saveInDatabase

Stores the ePages API credentials in the Shop.

Syntax
saveInDatabase( );

sendToken

Sends the ePages API credentials to the given url

Syntax
sendToken( $CallbackUrl );
Input
$CallbackUrl (String)
Callback url of EasyMarketing
Return
(boolean)
Status