Products Requesting Product Types Get product types
GET
https://api.disasteraware.com/products/types
Authorize to access the API.
200
Copy [
{
"type": "FOLDER_PRODUCT",
"description": "Termination"
},
{
"type": "FILE_PRODUCT",
"description": "Products of this type have an associated multi-media file e.g. PDF, Word Document, associated to them."
},
{
"type": "TEXT_PRODUCT",
"description": "These products have a text field that contains a message."
},
{
"type": "URL_PRODUCT",
"description": "These products are hyperlinks to external resources e.g. a web page."
}
]
cURL Java Node.js PHP Python
Copy curl --location --request GET \
'https://api.disasteraware.com/products/types'
Copy 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/types");
HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();
httpConn.setRequestMethod("GET");
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);
}
}
Copy var fetch = require('node-fetch');
fetch('https://api.disasteraware.com/products/types');
Copy <?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array();
$response = Requests::get('https://api.disasteraware.com/products/types', $headers);
Copy import requests
response = requests.get('https://api.disasteraware.com/products/types')
A product will come in one of the four following types:
These products are used to organize products into logical hierarchies in the DisasterAWARE client application.
Products of this type have an associated multi-media file e.g. PDF, Word Document, associated with them.
These products have a text field that contains a message.
These products are hyperlinks to external resources e.g. a web page.