Difference between revisions of "API Get Projects"
From zFairs Contest Management
Line 9: | Line 9: | ||
body: JSON.stringify({ | body: JSON.stringify({ | ||
ApiKey:'<Private key>', | ApiKey:'<Private key>', | ||
− | FairId: ' | + | FairId: '9df61f13-474b-442f-ac1f-edca7348ef71', //This value can be found in your url it's the value of f |
Body: {} | Body: {} | ||
}) | }) |
Latest revision as of 14:59, 9 April 2024
Get Projects
Get a list of projects from our API.
fetch('/api/data/projects', {
method:'POST',
headers:{'Content-Type': 'application/json'},
body: JSON.stringify({
ApiKey:'<Private key>',
FairId: '9df61f13-474b-442f-ac1f-edca7348ef71', //This value can be found in your url it's the value of f
Body: {}
})
})
.then(response => response.json())
.then(data=>{console.log('Success: ',data);})
.catch((error)=>{console.log('Error: ', error);});