UserBlocks.php in Auth0 Single Sign On 8.2
File
vendor/auth0/auth0-php/src/API/Management/UserBlocks.php
View source
<?php
namespace Auth0\SDK\API\Management;
class UserBlocks extends GenericResource {
public function get($user_id) {
return $this->apiClient
->method('get')
->addPath('user-blocks', $user_id)
->call();
}
public function getByIdentifier($identifier) {
return $this->apiClient
->method('get')
->addPath('user-blocks')
->withParam('identifier', $identifier)
->call();
}
public function unblock($user_id) {
return $this->apiClient
->method('delete')
->addPath('user-blocks', $user_id)
->call();
}
public function unblockByIdentifier($identifier) {
return $this->apiClient
->method('delete')
->addPath('user-blocks')
->withParam('identifier', $identifier)
->call();
}
}