class User (View source)

Represents a user.

Properties

string $id

UUID v4.

string $email

Email of user.

string $apiKey Key.
string $apiSecret Secret.

Methods

__construct(string $id, string $email, string $apiKey, string $apiSecret)

Constructor.

static User
createFromJsonResponse(string $jsonString)

Create a user from the JSON data returned by the rokka.io API.

string
getId()

Get Id.

string
getEmail()

Get Email.

string
getApiKey()

Get Api Key.

string
getApiSecret()

Get Api Secret.

Details

__construct(string $id, string $email, string $apiKey, string $apiSecret)

Constructor.

Parameters

string $id Id
string $email Email
string $apiKey

API key

string $apiSecret

API secret

static User createFromJsonResponse(string $jsonString)

Create a user from the JSON data returned by the rokka.io API.

Parameters

string $jsonString

JSON as a string

Return Value

User

string getId()

Get Id.

Return Value

string

string getEmail()

Get Email.

Return Value

string

string getApiKey()

Get Api Key.

Return Value

string

string getApiSecret()

Get Api Secret.

Return Value

string