Class: ShopifyAPI::AccessToken

Inherits:
Base
  • Object
show all
Defined in:
lib/shopify_api/resources/access_token.rb

Class Method Summary collapse

Methods inherited from Base

activate_session, api_version, api_version=, #as_json, clear_session, early_july_pagination?, #encode, headers, init_prefix, init_prefix_explicit, #persisted?, prefix, prefix=, prefix_source, resource_prefix, resource_prefix=, version_validation!

Methods included from Countable

#count

Class Method Details

.delegate(access_scope, expires_in = nil) ⇒ Object


3
4
5
6
# File 'lib/shopify_api/resources/access_token.rb', line 3

def self.delegate(access_scope, expires_in = nil)
  resource = post(:delegate, delegate_access_scope: access_scope, expires_in: expires_in)
  instantiate_record(format.decode(resource.body), {})
end