DAE API Documentation
  • Introduction
  • Authentication
    • Authorizing Requests
  • Hazards
    • What are Global Active Hazards?
    • Requesting Hazard Types
    • Requesting Hazard Severities
    • Requesting Hazard Categories
    • Requesting Active Hazards
      • Requesting Active Hazards of a Specific Category
      • Requesting Active Hazards of a Specific Severity
    • Hazard’s Smart Alert Geography
  • Products
    • What are Products?
    • Requesting Product Types
    • Requesting a Hazard’s Products
    • Requesting a Product
Powered by GitBook
On this page

Was this helpful?

  1. Products

Requesting Product Types

Get product types

GET https://api.disasteraware.com/products/types

Headers

Name
Type
Description

Authorization

string

Authorize to access the API.

[
    {
        "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 --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.

PreviousWhat are Products?NextRequesting a Hazard’s Products

Last updated 3 years ago

Was this helpful?

See page to get your accessToken.

Authorizing Requests