Method: Auth0::Api::V2::UserBlocks#user_blocks

Defined in:
lib/auth0/api/v2/user_blocks.rb

#user_blocks(identifier) ⇒ json

Retrieves the user blocks

Parameters:

  • identifier (string)

    Should be any of: username, phone_number, email.

Returns:

  • (json)

    the user blocks

Raises:

See Also:



13
14
15
16
17
18
19
# File 'lib/auth0/api/v2/user_blocks.rb', line 13

def user_blocks(identifier)
  raise Auth0::InvalidParameter, 'Must specify a valid identifier' if identifier.to_s.empty?
  request_params = {
    identifier: identifier
  }
  get(user_blocks_path, request_params)
end