Development Quickstart
Get up and running with our Wegaw API and kick-start your Wegaw integration.
Step 1: Obtain your API tokens
curl -X POST 'https://api.staging.defrost.io/v2/token/' --header 'Content-Type: application/json' --data '{"username":"string","password":"string"}' import requests
url = 'https://api.staging.defrost.io/v2/token/'
payload = {'username':'string','password':'string'}
r = requests.post(url, json=payload, timeout=300)
if r.status_code == 200:
data = r.json()//import axios on the header <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
let url = 'https://api.staging.defrost.io/v2/token/';
(async() => {
const payload = {'username':'string','password':'string'}
try {
const response = await axios.post(url, payload);
if (response.status == 200) {
const data = response.data;
console.log(data);// Work with the data
} else {
console.error('Failed with status code:', response.status);
}
} catch (error) {
console.error('Error during the call:', error);
}
})(); Step 2: Check the catchments available via API Request
Step 3: Get data via API Request
Step 4: Find available maps and download them via API Request
Last updated