Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Downloading files using BOX API

Hi Team,

 

I am trying to download file via BOX API.

Through Box API I am able to get access token when I do a post request.

 

But when I am trying to download file from the folder path which I gave it is throwing error as below:0683p000009LttR.png

[INFO ]: 2017-04-26 12:36:56,532 enterprise_big_data.call_box_api_0_1.Call_Box_API - TalendJob: 'Call_Box_API' - Start.
[statistics] connecting to socket on port 3382
[statistics] connected
[INFO ]: 2017-04-26 12:36:56,610 enterprise_big_data.call_box_api_0_1.Call_Box_API - tBoxConnection_1 - Start to work
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method getBoxFolderRecursively(List<String>, BoxFolder, BoxClient) is undefined for the type Call_Box_API

at enterprise_big_data.call_box_api_0_1.Call_Box_API.tBoxGet_1Process(Call_Box_API.java:758)
at enterprise_big_data.call_box_api_0_1.Call_Box_API.tBoxConnection_1Process(Call_Box_API.java:660)
at enterprise_big_data.call_box_api_0_1.Call_Box_API.runJobInTOS(Call_Box_API.java:1221)
at enterprise_big_data.call_box_api_0_1.Call_Box_API.main(Call_Box_API.java:1055)

 

 

Any help is much appreciated.

 

Rahul

Labels (3)
2 Replies
Anonymous
Not applicable
Author

Hi All,

 

I also have similar requirement to get the data from box.Can anyone help on this please.

 

Regards

PK

Anonymous
Not applicable
Author

I haven't been able to successfully pull data from Box API v2 using the tBoxConnection. In your example are you using a developer access_token? Or is the tBoxConnection component working for you? What I ended up doing was creating a JWT subjob that signs a JWT payload and handles the authentication. Then I just use tRest components to request various endpoints listed here https://developer.box.com/reference. I am assuming that tBoxConnection has not been updated to work with Box API v2. Can anyone confirm this?