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

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:

InvalidArgumentOnly one auth mechanism allowed; only the X-Amz-Algorithm query parameter, Signature query string parameter or the Authorization header should be specifiedAuthorizationBearer XXXXXXXYYYYYZZZZZ

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

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.