Sha256: b2dd4f7cf38667e833bbbe8b992016c6a3b2629372489589bb55ed8c8048aeb5

Contents?: true

Size: 636 Bytes

Versions: 42

Compression:

Stored size: 636 Bytes

Contents

module MuffinMan
  module Tokens
    class V20210301 < SpApiClient
      def create_restricted_data_token(path, method, data_elements, target_application: nil)
        @local_var_path = "/tokens/2021-03-01/restrictedDataToken"
        @request_body = {}
        @request_body["targetApplication"] = target_application unless target_application.nil?
        restricted_resources = {
          "method" => method,
          "path" => path,
          "dataElements" => data_elements
        }
        @request_body["restrictedResources"] = [restricted_resources]
        @request_type = "POST"
        call_api
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
muffin_man-1.4.5 lib/muffin_man/tokens/v20210301.rb
muffin_man-1.4.4 lib/muffin_man/tokens/v20210301.rb