Base URL: https://affiliate.anveshan.farm
Version: 1.0.0
Description: Submit new affiliate application
Description: Check application status
Description: Get affiliate dashboard data
// Submit affiliate application
const response = await fetch('https://affiliate.anveshan.farm/api/affiliate', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
currentUserEmail: 'user@example.com',
phone: '+1234567890',
firstName: 'John',
lastName: 'Doe',
// ... other required fields
})
});
const result = await response.json();
console.log(result);
const API_BASE_URL = 'https://affiliate.anveshan.farm';
fetch(API_BASE_URL + '/api/affiliate', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(formData)
})
.then(response => response.json())
.then(data => console.log(data));