Requesting a Product
Get a product details
GET
https://api.disasteraware.com/products/{product-id}
Path Parameters
Name
Type
Description
product-id
string
id of a product.
Headers
Name
Type
Description
Authorization
string
Authorize to access the API.
[
{
"app_IDs": null,
"comment_Text": "",
"data": null,
"filename": null,
"hazard_ID": 134583,
"is_Hidden": "N",
"org_ID": 0,
"org_IDs": "",
"organization_acronym": null,
"parent_ID": 0,
"product_ID": 1153909,
"product_Type": "FOLDER_PRODUCT",
"security_Flag": "A",
"title": "Situational Awareness (SA)",
"uuid": "4dabbee9-ec29-4da1-b1e4-2a6864672c63",
"user_ID": "DisasterAWARE (Automated)",
"product_url": null,
"suffix": "folder",
"create_Date": "1619972855960",
"update_Date": "1619972861478",
"timeline_Date": "1619972861478",
"update_User": "ddp",
"geo_Locations": ""
}
]
Invalid Token
See Authorizing Requests page to get your accessToken.
Below is an example request with path parameters product-id=1153909
curl --location --request GET \
'https://api.disasteraware.com/products/1153909' \
--header 'Authorization: Bearer your_accessToken'
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws IOException {
URL url = new URL("https://api.disasteraware.com/products/1153909");
HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();
httpConn.setRequestMethod("GET");
httpConn.setRequestProperty("Authorization", "Bearer your_accessToken");
InputStream responseStream = httpConn.getResponseCode() / 100 == 2
? httpConn.getInputStream()
: httpConn.getErrorStream();
Scanner s = new Scanner(responseStream).useDelimiter("\\A");
String response = s.hasNext() ? s.next() : "";
System.out.println(response);
}
}
var fetch = require('node-fetch');
fetch('https://api.disasteraware.com/products/1153909', {
headers: {
'Authorization': 'Bearer your_accessToken'
}
});
<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
'Authorization' => 'Bearer your_accessToken'
);
$response = Requests::get('https://api.disasteraware.com/products/1153909', $headers);
import requests
headers = {
'Authorization': 'Bearer your_accessToken',
}
response = requests.get('https://api.disasteraware.com/products/1153909', headers=headers)
Last updated
Was this helpful?