Legacy Dev Forum Posts

 View Only

Sign Up

How can I download CSV file with contacts included inside contact list?

  • 1.  How can I download CSV file with contacts included inside contact list?

    Posted 06-05-2025 18:11

    ruben.berlanga | 2017-05-04 13:09:18 UTC | #1

    Hi there,

    I need to download CSV file with all contacts included into a contact list through Java SDK but, for the moment, I haven't reached it.

    I'm using method getOutboundContactlistExport(contactListId, "true") for OutboundApi and the result is next:

    <Error><Code>InvalidArgument</Code><Message>Only one auth mechanism allowed; only the X-Amz-Algorithm query parameter, Signature query string parameter or the Authorization header should be specified</Message><ArgumentName>Authorization</ArgumentName><ArgumentValue>Bearer XXXXXXX</ArgumentValue><RequestId>YYYYY</RequestId><HostId>ZZZZZ</HostId></Error>

    What was the problem?

    When I put null in the second parameter of the method, response returns to me URI which I can download file, but how I could to download using implementation in Java? Can't SDK do it?

    Thanks


    tim.smith | 2017-05-04 20:35:11 UTC | #2

    Take a look at this topic: https://developer.mypurecloud.com/forum/t/read-contactlist-as-stream/1220. There is an issue to be worked around to get the correct download URL. Once you get the signed AWS URL, you'll need to implement your own process to download the file; the SDK is limited to API operations and does not include file I/O functionality.


    system | 2017-08-28 19:34:21 UTC | #3


    This post was migrated from the old Developer Forum.

    ref: 1259