Sha256: 4c9fef5d49824d1e17f37c9a1dd84783f32c387309bf5dc9c091727ce440525d
Contents?: true
Size: 1.66 KB
Versions: 6
Compression:
Stored size: 1.66 KB
Contents
module Smartsheet # Sent Update Requests Endpoints # @see https://smartsheet-platform.github.io/api-docs/?ruby#update-requests API Update Requests # Docs class SentUpdateRequests attr_reader :client private :client def initialize(client) @client = client end def delete(sheet_id:, sent_update_request_id:, params: {}, header_overrides: {}) endpoint_spec = Smartsheet::API::EndpointSpec.new(:delete, ['sheets', :sheet_id, 'sentupdaterequests', :sent_update_request_id]) request_spec = Smartsheet::API::RequestSpec.new( params: params, header_overrides: header_overrides, sheet_id: sheet_id, sent_update_request_id: sent_update_request_id ) client.make_request(endpoint_spec, request_spec) end def get(sheet_id:, sent_update_request_id:, params: {}, header_overrides: {}) endpoint_spec = Smartsheet::API::EndpointSpec.new(:get, ['sheets', :sheet_id, 'sentupdaterequests', :sent_update_request_id]) request_spec = Smartsheet::API::RequestSpec.new( params: params, header_overrides: header_overrides, sheet_id: sheet_id, sent_update_request_id: sent_update_request_id ) client.make_request(endpoint_spec, request_spec) end def list(sheet_id:, params: {}, header_overrides: {}) endpoint_spec = Smartsheet::API::EndpointSpec.new(:get, ['sheets', :sheet_id, 'sentupdaterequests']) request_spec = Smartsheet::API::RequestSpec.new( header_overrides: header_overrides, params: params, sheet_id: sheet_id ) client.make_request(endpoint_spec, request_spec) end end end
Version data entries
6 entries across 6 versions & 1 rubygems