trait UserExtension

UserExtension trait.

This extension is supposed to be applied to Client class which provides a fetchResource method.

Traits

PersonalAccessTokenExtension trait.

Methods

getPersonalAccessToken(string $personalAccessTokenId)

Returns a PersonalAccessToken resource.

getPersonalAccessTokens(Query $query = null)

Returns a ResourceArray object containing PersonalAccessToken resources.

ResourceInterface|ResourceArray
fetchResource(string $class, array $parameters, Query $query = null, ResourceInterface $resource = null)

No description

getUserMe()

Returns a User resource.

Details

getPersonalAccessToken(string $personalAccessTokenId)

Returns a PersonalAccessToken resource.

Parameters

string $personalAccessTokenId

See also

https://www.contentful.com/developers/docs/references/content-management-api/#/reference/personal-access-tokens/personal-access-token

getPersonalAccessTokens(Query $query = null)

Returns a ResourceArray object containing PersonalAccessToken resources.

Parameters

Query $query

See also

https://www.contentful.com/developers/docs/references/content-management-api/#/reference/personal-access-tokens/personal-access-tokens-collection

at line 26
ResourceInterface|ResourceArray fetchResource(string $class, array $parameters, Query $query = null, ResourceInterface $resource = null)

Parameters

string $class
array $parameters
Query $query
ResourceInterface $resource

Return Value

ResourceInterface|ResourceArray

at line 35
getUserMe()

Returns a User resource.

See also

https://www.contentful.com/developers/docs/references/content-management-api/#/reference/users/user