One Star

Connecting to Box API to download file from Box

Hi,
I am trying to create a job for downloading file from box.
Using tboxconnection first to connect to the box. Once connection is done, using tBoxGet component to download the file.
The path i am using is "/All Files/<Folder Name>/<File Name>.xlsx however getting error as java.net.UnknownHostException: api.box.com.
Also tried using the path as <File_ID>/content which we can use in POSTMAN.
Please suggest how to resolve this issue.


 

Thanks,
Arpita
Save
Save
Save
3 REPLIES
Moderator

Re: Connecting to Box API to download file from Box

Hi,
Is your Box API connection parameter Ok with you? Can you successfully access it through client without using talend tool?
Have you tried to set path as:"All Files/<Folder Name>/<File Name>.xlsx" to see if it works?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Connecting to Box API to download file from Box

Hi,
I am able to connect using Postman. In Postman first two steps are there to get authentication key, and last step is to get the connect to Box to get the required file. To Download file we are using the URL : <file_id>/content. 
This same URL i tried using in Talend but its not working.
Thanks,
Arpita
Moderator

Re: Connecting to Box API to download file from Box

Hi,
What's the build version you are using? subscription solution or open studio?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.