API and filename

albusmw
18 May, 2018 08:54
Hi!

I tried to get the filename and Extension from the JSON object as described in the API reference, but I am missing these Elements (see below …smile.

Best regards

Martin.

{"meta": {"limit": 1, "next": "/api/v1/image/?format=json&api_secret=…1&limit=1&user=equinoxx&offset=1&api_key=…", "offset": 0, "previous": null, "total_count": 235}, "objects": [{"animated": false, "dec": "-10.674", "description": "25.MAR.2018 - Celestron Edge HD 1100 + Hyperstar + ASI ZWO ASI1600 MM cooled\r\n12 x 300s Baader Ha HighSpeed f/2 Filter\r\n\r\n26.MAR.2018 - Celestron Edge HD 1100 + Hyperstar + ASI ZWO ASI1600 MM cooled\r\n12 x 300s Baader O3 HighSpeed f/2 Filter\r\n\r\n26.MAR.2018 - Celestron Edge HD 1100 + Hyperstar + ASI ZWO ASI1600 MM cooled\r\n12 x 300s Baader S3 HighSpeed f/2 Filter\r\n\r\n26.MAR.2018 - Takahashi FSQ-85 + Moravian G2-8300 FW\r\n20 x 120s a Astronomik LRGB", "h": 1760, "id": 347228, "imaging_cameras": ["ASI ZWO 1600MM-cooled", "Moravian Instruments G2-8300 FW"], "imaging_telescopes": ["Takahashi FSQ-85ED", "Edge HD 1100"], "is_final": true, "is_solved": true, "license": 0, "link": "", "link_to_fits": "", "locations": ["/api/v1/location/2798314/"], "orientation": "0.059", "pixscale": "2.812", "published": "2018-05-17T03:27:13.674350", "ra": "106.630", "radius": "1.140", "resource_uri": "/api/v1/image/347228/", "revisions": [], "subjects": ["NGC 2343", " NGC 2335", " IC 2177"], "title": "IC2177 Seagull Nebula - SHO-LRGB", "updated": "2018-05-18T07:11:48.985730", "uploaded": "2018-05-17T03:27:15.562805", "url_duckduckgo": "https://www.astrobin.com/347228/0/rawthumb/duckduckgo/", "url_duckduckgo_small": "https://www.astrobin.com/347228/0/rawthumb/duckduckgo_small/", "url_gallery": "https://www.astrobin.com/347228/0/rawthumb/gallery/", "url_hd": "https://www.astrobin.com/347228/0/rawthumb/hd/", "url_real": "https://www.astrobin.com/347228/0/rawthumb/real/", "url_regular": "https://www.astrobin.com/347228/0/rawthumb/regular/", "url_thumb": "https://www.astrobin.com/347228/0/rawthumb/thumb/", "user": "equinoxx", "w": 2328}]}
siovene
18 May, 2018 09:48
Sorry, docs are outdated. Use the url_* properties directly, they redirect directly to the file.
 
Register or login to create to post a reply.