access_token.rb 270 B

12345678
  1. module ShopifyAPI
  2. class AccessToken < Base
  3. def self.delegate(access_scope, expires_in = nil)
  4. resource = post(:delegate, delegate_access_scope: access_scope, expires_in: expires_in)
  5. instantiate_record(format.decode(resource.body), {})
  6. end
  7. end
  8. end