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: '0abbed7d-14f5-47bc-865b-0c2878feb205', //This value can be found in your url it's the value of f |
Body: {} | Body: {} | ||
}) | }) |
Revision as of 14:48, 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: '0abbed7d-14f5-47bc-865b-0c2878feb205', //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);});