I have been trying to set up the TOLNet API but I am having issues with the authorization. I have an EarthData account, and have tried doing this both by being logged in before starting and by logging in during the process, without any change in the result.
The information in the API description (https://tolnet.larc.nasa.gov/api/index.html#/Data/getDataDownload) states you must set up a .urs_cookies file before initializing the curl session. The webpage provides the following link: https://wiki.earthdata.nasa.gov/display/EL/How+To+Access+Data+With+cURL+And+Wget
On following this link, it redirects you to another page (https://wiki.earthdata.nasa.gov/login.action?sso=false) and you are presented with a 'Forbidden' webpage (this happens whether or not you are logged in to the EarthData system on the same web browser).
The webpage authorization (the button on the top right of the API description page) will allow you to download files using the webpage, though only by altering the web address after the authorization has taken place because it defaults to a file ID that doesn't exist, giving a 404 error initially. Since this webpage is supposed to show what the API can do, this isn't actually helpful as it doesn't provide any information on how to properly set up the API to accept that same authorization to function in an automated way.
Could someone let me know how I can sort this?
Thanks in advance.
TOLNet API Authorisation issue
Re: TOLNet API Authorisation issue
Apologies. The website containing the instructions for the .urs_cookies file has moved. The new url is: https://urs.earthdata.nasa.gov/documentation/for_users/data_access/curl_and_wget
We will update the TOLNet API with the new url.
Please let us know if you still run into download difficulties.
We will update the TOLNet API with the new url.
Please let us know if you still run into download difficulties.
Re: TOLNet API Authorisation issue
The link to the directions listed on the https://tolnet.larc.nasa.gov/api/index.html#/Data/getDataDownload has been updated. Thank you for pointing out that the old link was broken.