Method: Instagram::Client#unblock_user

Defined in:
lib/instagram/client/users.rb

#unblock_user(id, options = {}) ⇒ Hashie::Mash

Remove a relationship block between the current user and the target user

Examples:

Remove a relationship block between the current user and the target user

Instagram.unblock_user(4)

Parameters:

  • user (Integer)

    An Instagram user ID.

  • options (Hash) (defaults to: {})

    An optional options hash

Returns:

  • (Hashie::Mash)

See Also:

Supported formats:

  • :json

Requires Authentication:

  • true

Rate Limited:

  • true



268
269
270
271
272
# File 'lib/instagram/client/users.rb', line 268

def unblock_user(id, options = {})
  options["action"] = "unblock"
  response = post("users/#{id}/relationship", options, signature = true)
  response
end