Class: Anypost::Resources::Identity

Inherits:
Base
  • Object
show all
Defined in:
lib/anypost/resources/identity.rb

Overview

Identity operations (‘/whoami`).

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Anypost::Resources::Base

Instance Method Details

#whoamiObject

Identify the team and permission level behind the current API key.



8
9
10
# File 'lib/anypost/resources/identity.rb', line 8

def whoami
  request_object(:get, "/whoami")
end