Get a Token's upload rules
GET/file-token-rules/ {token}/
v2
GET
deprecated-file-get-file-token-rules
Deprecated by GET /v2/file-upload-tokens/{fileUploadToken}/rules
.
Request
Responses
Usage examples
- cURL
- JavaScript SDK
- PHP SDK
$ curl \
--fail \
--location \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
https://api.mittwald.de/v2/file-token-rules/3fa85f64-5717-4562-b3fc-2c963f66afa6
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.deprecatedFileGetFileTokenRules({
"token": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
});
assertStatus(response, 200);
use \Mittwald\ApiClient\Generated\V2\Clients\File\DeprecatedFileGetFileTokenRules\DeprecatedFileGetFileTokenRulesRequest;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
$request = (new DeprecatedFileGetFileTokenRulesRequest(
token: "3fa85f64-5717-4562-b3fc-2c963f66afa6"
));
$response = $client->file()->deprecatedFileGetFileTokenRules($request);
var_dump($response->getBody();