You are here

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 {

  /**
   *
   * @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();
  }

}

Classes

Namesort descending Description
UserBlocks