Get webcam images.
Will create webcam if not found, else update. Because image paths use the webcamCode value, it cannot be changed (once created) when using the API. The webcamCode is used for the image path so avoid spaces and special characters, it must be unique. Webcam name is displayed within the webapp and used for sorting, it is required. Other values are optional, but latitude and longitude are needed to determine if the image is daytime or nighttime. The optional vnum, volcano_name values are the value assigned by the Smithsonian Institution for a volcano webcam views.
curl -i --header "username:USERNAME" --header "password:PASSWORD" -X POST -d '{ "webcamCode":"TEST","webcamName":"Test webcam label","latitude":"90.0", "longitude":"160.0","elevationM":"900","bearingDeg":"45","externalUrl":"", "vnum":"", "vName":"", "faaInd":"N" }' https://volcview.wr.usgs.gov/ashcam-api/webcamApi/webcamRefreshes the hasImages and newestImage values for all webcams.
curl -i --header "username:USERNAME" --header "password:PASSWORD" -X POST https://volcview.wr.usgs.gov/ashcam-api/webcamApi/refreshAllCopies webcam image from image directory to clear image directory. Enables clear image slider in webcam viewer. The imageIdentifier value can be either the imageID or the image md5 value.
curl -i --header "username:USERNAME" --header "password:PASSWORD" -X GET https://volcview.wr.usgs.gov/ashcam-api/webcamApi/assignClearImage/{webcamCode}/{imageIdentifier}Sets the vnum and volcano name for selected webcam.
curl -i --header "username:USERNAME" --header "password:PASSWORD" -X POST -d '{ "webcamCode":"TEST","vnum":"", "vName":"" }' https://volcview.wr.usgs.gov/ashcam-api/webcamApi/assignVolcano