RequestDownloads

Demonstra a intenção de realizar o download de um ou mais arquivos. Quando o arquivo estiver realmente disponível, um sinal downloadAvailable será enviado. Também poderá ser usado isDownloadAvailable para pesquisar a conclusão.

Payload de entrada
    {
        "blobRequest": [
          {
            "domainName": "string",
            "serviceName": "string",
            "areaSecret": "string",
            "targetObjectId": "string",
            "fileName": "string",
            "version": "string",
            "token": "string",
            "requirements": ["string"],
            "supportedProtocols": ["string"],
            "style": "string",
            "ttl": int
          }
        ]
      }
Request
curl --location --request POST "https://api.senior.com.br/platform/blob_service/requestDownloads" --header "Content-Type: application/json" --header "client_id: {client_id}" --header "Accept: application/json" --header "Authorization: Bearer {token}" --data-raw "{ 'blobRequest': [ { 'domainName': 'string', 'serviceName': 'string', 'areaSecret': 'string', 'targetObjectId': 'string', 'fileName': 'string', 'version': 'string', 'token': 'string', 'requirements': [ 'string' ], 'supportedProtocols': [ 'string' ], 'style': 'string', 'ttl': int } ]}"
Response

200 Ok

    {
        "blobDetails": {
          "domainName": "string",
          "serviceName": "string",
          "targetObjectId": "string",
          "version": "string",
          "token": "string",
          "location": {
            "protocol": "string",
            "uri": "string",
            "credentials": {}
          },
          "fileName": "string"
        }
      }

403 Permissão negada

401 Unauthorized

    {
        "error_description": "The access token is invalid or has expired",
        "error": "invalid_token"
    }

Comentários

No meu caso retornou o erro 500, já verifiquei as credenciais e as permissões do usuário, tudo ok. Existe alguma especifícação no servidor da Senior para a API funcionar de forma externa?