class UserBlocks in Auth0 Single Sign On 8.2
Hierarchy
- class \Auth0\SDK\API\Management\GenericResource
- class \Auth0\SDK\API\Management\UserBlocks
Expanded class hierarchy of UserBlocks
1 file declares its use of UserBlocks
- Management.php in vendor/
auth0/ auth0-php/ src/ API/ Management.php
File
- vendor/
auth0/ auth0-php/ src/ API/ Management/ UserBlocks.php, line 5
Namespace
Auth0\SDK\API\ManagementView source
class UserBlocks extends GenericResource {
/**
*
* @param string $user_id
* @return mixed
*/
public function get($user_id) {
return $this->apiClient
->method('get')
->addPath('user-blocks', $user_id)
->call();
}
/**
*
* @param string $identifier
* @return mixed
*/
public function getByIdentifier($identifier) {
return $this->apiClient
->method('get')
->addPath('user-blocks')
->withParam('identifier', $identifier)
->call();
}
/**
*
* @param string $user_id
* @return mixed
*/
public function unblock($user_id) {
return $this->apiClient
->method('delete')
->addPath('user-blocks', $user_id)
->call();
}
/**
*
* @param string $identifier
* @return mixed
*/
public function unblockByIdentifier($identifier) {
return $this->apiClient
->method('delete')
->addPath('user-blocks')
->withParam('identifier', $identifier)
->call();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GenericResource:: |
protected | property | Injected ApiClient instance to use. | |
GenericResource:: |
protected | function | Check that a variable is a string and is not empty. | |
GenericResource:: |
protected | function | Check for invalid permissions with an array of permissions. | |
GenericResource:: |
public | function | Get the injected ApiClient instance. | |
GenericResource:: |
protected | function | Normalize include_totals parameter. | |
GenericResource:: |
protected | function | Normalize pagination parameters. | |
GenericResource:: |
public | function | GenericResource constructor. | |
UserBlocks:: |
public | function | ||
UserBlocks:: |
public | function | ||
UserBlocks:: |
public | function | ||
UserBlocks:: |
public | function |