Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Download All audios /api/v2/recording/batchrequests

    Posted 01-10-2020 12:18
      |   view attached
    No replies, thread closed.
    Good afternoon,

    I am trying to download audio recordings from bulk interactions, I am using API / api / v2 / recording / batchrequests, but I am unable to download, could anyone help me ?

    I am testing API which was recommended, but I have some doubts.

    I put the conversationID in the API but it only generates another ID, it does not generate any links to download the recordings?

    Request I am submitting.

    {

        "batchDownloadRequestList": [

           {

              "conversationId": "99c78807-f5f7-40c2-93fe-21691ed584bd",

             

             

              "recordingId": ""

           }

        ]

    }

    Return

    {

       "id": "dc7bca8a-2ef6-4b92-8710-b4581791cc5a"

    }
    #QualityManagement

    ------------------------------
    victor soares
    Solve4me
    ------------------------------


  • 2.  RE: Download All audios /api/v2/recording/batchrequests
    Best Answer

    Posted 01-11-2020 00:18
    No replies, thread closed.
    When you do the batch request, it comes back with a JobID.  If you use Get  /api/v2/recording/batchrequests/{jobId}, you should get something like below and the URL should be your download. 
     
    {
      "jobId": "0fe7120f-5e18-4933-bbae-d38700d6cb4d",
      "expectedResultCount": 1,
      "resultCount": 1,
      "errorCount": 0,
      "results": [
        {
          "conversationId": "757b5079-a519-42d2-b762-cbac06d3cb2d",
          "recordingId": "a812bae8-47b9-4158-902c-88ab5c4f2147",
          "resultUrl": "https://prod-recording-playback.s3.amazonaws.com/MediaCache/BatchDownload/f8b96a0a-b8a8-4fea-a4f0-9348834ef112/757b5079-a519-42d2-b762-cbac06d3cb2d/a812bae8-47b9-4158-902c-88ab5c4f2147?X-Amz-Security-Token=IQoJb3JpZ2luX2VjEIX%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJIMEYCIQCDldrS5gpUcNtCGsCMQjI8gyUGOMBcEVauRRM3Onz67wIhAMiLIn4sQX6JWJwA86ueSLrWIwfiwfX0q4rMM3kr3oBiKr0DCP3%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQABoMNz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fs3%2Faws4_request&X-Amz-Signature=7a60f4e72897747e558bcedd54fc3464a54e497ddc2038f5c740ae3ce34cc80b",
          "contentType": "audio/ogg"
        }
      ]
    }


    ------------------------------
    Robert Wakefield-Carl
    Avtex Solutions, LLC
    Contact Center Innovation Architect
    robertwc@avtex.com
    https://www.Avtex.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 3.  RE: Download All audios /api/v2/recording/batchrequests

    Posted 01-13-2020 11:07
    No replies, thread closed.
    Hi Robert,

    Thank you for response.

    I am sending as conversation IDs and it returns an ID, so when I put this ID in the Get / api / v2 / recording / batchrequests / {jobId API, it returns the following information


    does not return link to URL


    ------------------------------
    victor soares
    Solve4me
    ------------------------------



  • 4.  RE: Download All audios /api/v2/recording/batchrequests
    Best Answer

    Posted 01-13-2020 12:16
    No replies, thread closed.
    We have a tutorial in the PureCloud Developer Center for NodeJS, C#, and/or Java that shows how to bulk download recordings for a given date range: https://developer.mypurecloud.com/api/tutorials/recordings-downloader/?language=nodejs&step=1


    ------------------------------
    Jim Crespino
    Senior Director, Developer Evangelism
    Genesys
    https://developer.genesys.com
    ------------------------------



  • 5.  RE: Download All audios /api/v2/recording/batchrequests
    Best Answer

    Posted 01-13-2020 13:24
    No replies, thread closed.
    Also, Victor, you have to wait for a while before the job results are available. I had to wait an hour or so for /api/v2/recording/batchrequests/{jobId} to give me the URI, even though I just queried one conversationId.

    ------------------------------
    George Ganahl GCP (PureCloud), ICCE
    Principal Technology Consultant
    Genesys
    ------------------------------



  • 6.  RE: Download All audios /api/v2/recording/batchrequests

    Posted 01-20-2020 12:02
    No replies, thread closed.
    Good afternoon people,

    He returned a URL and was able to download it, how do I get multiple conversation IDs to download?

    would be like this?
    {
    "batchDownloadRequestList": [
    {
    "conversationId": "49962cea-6b67-48e2-9068-0430a8d56dae",
    "recordingId": ""
    },
    {
    "conversationId": "7889a74c-f9e3-46b0-b171-cabf82442819",
    "recordingId": ""
    }
    ]
    }


    Att

    ------------------------------
    victor soares
    Solve4me
    ------------------------------



  • 7.  RE: Download All audios /api/v2/recording/batchrequests

    Posted 01-20-2020 12:07
    No replies, thread closed.
    Good afternoon,

    I managed to download the rest, as George said, you have to wait a while.

    Thanks for the personal support

    ------------------------------
    victor soares
    Solve4me
    ------------------------------



  • 8.  RE: Download All audios /api/v2/recording/batchrequests

    Posted 02-26-2020 13:50
    No replies, thread closed.
    Hi Victor,

    Our friend @Becky Powell provided some more insight into your question in the most recent episode of the Genesys Cloud Community Q&A Show. Check it out here.​

    ------------------------------
    Cole Callahan
    Genesys - Employees
    Online Community Coordinator
    ------------------------------