Method: Chain::AccessToken::ClientModule#create

Defined in:
lib/chain/access_token.rb

#create(opts = {}) ⇒ AccessToken

Create an access token.

Parameters:

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

Options Hash (opts):

  • :id (String)

    ID specifying the ID of newly created access token. You must specify a unique ID for access token.

  • :type (String)

    DEPRECATED. Do not use in 1.2 or greater.

Returns:



37
38
39
# File 'lib/chain/access_token.rb', line 37

def create(opts = {})
  AccessToken.new(client.conn.request('create-access-token', opts))
end