Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is that possible to add an another example for downloading file with curl? #3319

Closed
wddabc opened this issue Aug 26, 2016 · 5 comments · Fixed by #6107
Closed

Is that possible to add an another example for downloading file with curl? #3319

wddabc opened this issue Aug 26, 2016 · 5 comments · Fixed by #6107

Comments

@wddabc
Copy link

wddabc commented Aug 26, 2016

http://guides.dataverse.org/en/latest/api/sword.html gives a fairly comprehensive usage of the curl command. I'm wondering if there could be another example for accessing a file given filename, doi using curl?

@djbrooke djbrooke added the ready label Aug 31, 2016
@pdurbin
Copy link
Member

pdurbin commented Sep 2, 2016

@wddabc well, you can't download files with Dataverse's implementation of SWORD and we don't plan to work on #183 any time soon. Instead, please use the Data Access API to download files: http://guides.dataverse.org/en/4.5/api/dataaccess.html

You're right that we should document somewhere how to download a file based on a DOI but it's a two step process. First you get a list of file IDs via the "Datasets" endpoint of the "native" API: http://guides.dataverse.org/en/4.5/api/native-api.html#datasets . Then you use the Data Access API to operate on the file IDs.

I've been thinking that maybe the API Guide should have a FAQ page or something!

@pdurbin
Copy link
Member

pdurbin commented Jun 27, 2017

@wddabc are you still interested in having us add an example?

@pdurbin pdurbin added the User Role: API User Makes use of APIs label Jul 4, 2017
@pdurbin pdurbin added the first-timers-only Encouraging new contributors, https://www.firsttimersonly.com label Apr 6, 2018
@pdurbin pdurbin self-assigned this Aug 20, 2019
@pdurbin
Copy link
Member

pdurbin commented Aug 21, 2019

You're right that we should document somewhere how to download a file based on a DOI but it's a two step process. First you get a list of file IDs via the "Datasets" endpoint of the "native" API: http://guides.dataverse.org/en/4.5/api/native-api.html#datasets . Then you use the Data Access API to operate on the file IDs.

@wddabc I just made pull request #6107 and explained in a new "getting started" page the two step process above. Here's how it looks:

Screen Shot 2019-08-21 at 6 51 28 AM

Does this help? Are you still interested in this issue?

@wddabc
Copy link
Author

wddabc commented Aug 23, 2019

Hi Philip,
Thanks for working on this! Sorry that I didn't get an up-to-date response somehow! I found a way in 2016 which uses linux command line instead of API. But the new doc is indeed helpful!

@pdurbin
Copy link
Member

pdurbin commented Aug 23, 2019

@wddabc great! I'll go ahead close this issue, then. Thanks!

@pdurbin pdurbin closed this as completed Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants