Claude Platform Docs

下載檔案

$client->files->download(string fileID, ?string workspaceID): download
GET/v1/files/{file_id}/content

下載檔案

Parameters
fileID: string

ID of the File.

workspaceID?:optional string
Returns
mixed
下載檔案
<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

$client = new Client(apiKey: 'my-anthropic-api-key');

$response = $client->files->download(
  'file_id', workspaceID: 'wrkspc_011CZkZaBF1tNoB5wlCeusgy'
);

var_dump($response);