Comment on page

Requesting Product Types

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