class ExactTargetRest::Authorization
An OAUTH2 REST authorization for ExactTarget API.
You can create “Client ID” and “Client Secret” in ExactTarget App Center (appcenter-auth.exacttargetapps.com).
Attributes
access_token[R]
expires_at[R]
expires_in[R]
Public Class Methods
new(client_id, client_secret)
click to toggle source
New authorization (it does not trigger REST yet).
@param client_id [String] Client ID @param client_secret [String] Client Secret
# File lib/exact_target_rest/authorization.rb, line 15 def initialize(client_id, client_secret) @client_id, @client_secret = client_id, client_secret end
Public Instance Methods
Protected Instance Methods
endpoint()
click to toggle source
# File lib/exact_target_rest/authorization.rb, line 54 def endpoint Faraday.new(url: AUTH_URL) do |f| f.request :json f.response :json, content_type: /\bjson$/ f.adapter FARADAY_ADAPTER end end