the email, name, and ID of the organization.
async function getOrganizations() {
const apiKey = "Your API Key";
const url = "https://sandbox.oumla.com/api/v1/organizations";
const response = await fetch(url, {
method: "GET",
headers: {
"x-api-key": apiKey,
"Content-Type": "application/json",
},
});
const data = await response.json();
console.log(data);
}
// Example usage
getOrganizations()
import axios from "axios";
async function getOrganizations() {
const apiKey = "Your API Key";
const url = "https://sandbox.oumla.com/api/v1/organizations";
try {
const response = await axios.get(url, {
headers: {
"x-api-key": apiKey,
"Content-Type": "application/json",
},
});
console.log(response.data);
} catch (error) {
console.error("Error:", error);
}
}
// Example usage
getOrganizations();
import requests
response = requests.get('https://sandbox.oumla.com/api/v1/organizations', headers={
'x-api-key': 'Your API Key'
})
if response.status_code == 200:
print(response.json())
else:
print(response.text)