Access Prompt and Use of Access Grant
async function sendAccessPrompt(clientId, webId, resourceUri) {
const response = await fetch('https://businessapp.com/accessprompt', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
clientId: clientId,
webId: webId,
resourceUri: resourceUri
})
});
if (response.ok) {
const data = await response.json();
return data;
}
throw new Error(`Failed to send Access Prompt: ${response.status}`);
}Receiving and Granting Access Request
Overview of Deliver Access Grant Integration
Last updated