Class: ZohoCrm::AccessToken::GetService

Inherits:
BaseService
  • Object
show all
Defined in:
lib/zoho_crm/access_token/get_service.rb

Instance Method Summary collapse

Instance Method Details

#callObject

Get access token.

www.zoho.com/crm/developer/docs/api/v7/refresh.html

Examples

service = ZohoCrm::AccessToken::GetService.call
service.access_token # => '1000.xxxx.yyyy'
service.expires_in # => 3600

POST /oauth/v2/token



21
22
23
# File 'lib/zoho_crm/access_token/get_service.rb', line 21

def call
  connection.post('oauth/v2/token', params.to_param)
end