Skip to content

Commit 3d26758

Browse files
authored
Update click-to-call-widget.md
1 parent 85b2e8a commit 3d26758

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/communication-services/tutorials/widgets/click-to-call-widget.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,15 @@ At this point, we have set up a static HTML page with a button that opens a call
125125

126126
Add the following code to the `getAccessToken()` function:
127127

128-
``` javascript
128+
``` javascript
129129

130-
async function getAccessToken(){
131-
const response = await fetch('https://<your-function-name>.azurewebsites.net/api/GetAccessToken?code=<your-function-key>');
132-
const data = await response.json();
133-
return data.token;
134-
}
130+
async function getAccessToken(){
131+
const response = await fetch('https://<your-function-name>.azurewebsites.net/api/GetAccessToken?code=<your-function-key>');
132+
const data = await response.json();
133+
return data.token;
134+
}
135135

136-
```
136+
```
137137

138138
You need to add the URL of your Azure Function. You can find these values in the Azure portal under your Azure Function resource.
139139

0 commit comments

Comments
 (0)