User
class User extends Base (View source)
User management client for the rokka.io service.
Constants
DEFAULT_API_BASE_URL |
|
DEFAULT_API_VERSION |
|
API_KEY_HEADER |
|
API_VERSION_HEADER |
|
USER_RESOURCE |
|
ORGANIZATION_RESOURCE |
|
Properties
protected ClientInterface | $client | Client to access Rokka. |
from Base |
Methods
Response
call(string $method, string $path, array $options = [], bool $needsCredentials = true)
Call the API rokka endpoint.
from
Base
createUser(string $email)
Create a user.
createOrganization(string $name, string $billingMail, string $displayName = '')
Create an organization.
getOrganization(string $name)
Return an organization.
createMembership(string $organization, string $email, string $role = Membership::ROLE_READ)
Create a membership.
getMembership(string $organization, string $email)
Get the membership metadata for the given organization and user's email.
Details
in
Base at line 46
__construct(ClientInterface $client)
Constructor.
in
Base at line 57
setCredentials(string $key, string $secret)
Set the credentials.
in
Base at line 72
protected Response
call(string $method, string $path, array $options = [], bool $needsCredentials = true)
Call the API rokka endpoint.
User
createUser(string $email)
Create a user.
Organization
createOrganization(string $name, string $billingMail, string $displayName = '')
Create an organization.
Organization
getOrganization(string $name)
Return an organization.
Membership
createMembership(string $organization, string $email, string $role = Membership::ROLE_READ)
Create a membership.
Membership
getMembership(string $organization, string $email)
Get the membership metadata for the given organization and user's email.