Module: FuelSDK::Targeting
Instance Attribute Summary collapse
-
#auth_token ⇒ Object
Returns the value of attribute auth_token.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
Instance Method Summary collapse
Instance Attribute Details
#auth_token ⇒ Object
Returns the value of attribute auth_token.
2 3 4 |
# File 'lib/fuelsdk/targeting.rb', line 2 def auth_token @auth_token end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
3 4 5 |
# File 'lib/fuelsdk/targeting.rb', line 3 def endpoint @endpoint end |
Instance Method Details
#determine_stack ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/fuelsdk/targeting.rb', line 15 def determine_stack refresh unless self.auth_token = {'params' => {'access_token' => self.auth_token}} response = get("https://www.exacttargetapis.com/platform/v1/endpoints/soap", ) raise 'Unable to determine stack' unless response.success? response['url'] end |
#refresh ⇒ Object
7 8 9 |
# File 'lib/fuelsdk/targeting.rb', line 7 def refresh raise NotImplementedError end |