Get a File's meta
GET/files/ {fileId}/ meta/
v2
GET
file-get-file-meta
Request
Responses
Usage examples
- cURL
- JavaScript SDK
- PHP SDK
$ curl \
--fail \
--location \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
https://api.mittwald.de/v2/files/3fa85f64-5717-4562-b3fc-2c963f66afa6/meta?token=jwt
import { MittwaldAPIV2Client } from "@mittwald/api-client";
import { assertStatus } from "@mittwald/api-client-commons";
const client = MittwaldAPIClient.newWithToken(process.env.MITTWALD_API_TOKEN);
const response = await client.file.getFileMeta({
"fileId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"queryParameters": {
"token": "jwt"
}
});
assertStatus(response, 200);
use \Mittwald\ApiClient\Generated\V2\Clients\File\GetFileMeta\GetFileMetaRequest;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
$request = (new GetFileMetaRequest(
fileId: "3fa85f64-5717-4562-b3fc-2c963f66afa6"
))
->withToken("jwt");
$response = $client->file()->getFileMeta($request);
var_dump($response->getBody();