Scarica file
GET/v1/files/{file_id}/content
Scarica file
Parameters
Returns
Scarica file
require "anthropic"
anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")
response = anthropic.files.download("file_id")
puts(response)Scarica file
ID of the File.
Optional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).
Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
require "anthropic"
anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")
response = anthropic.files.download("file_id")
puts(response)