Skip to content

Commit 4700149

Browse files
authored
add scope to linkedin example (#262)
Linkedin has started [requiring](https://docs.microsoft.com/en-us/linkedin/shared/authentication/authorization-code-flow#step-2-request-an-authorization-code) the scope to be passed in with the request. The People V1 API requires the [r_network](https://developer.linkedin.com/docs/v1/people/connections-api) scope.
1 parent 65e07e2 commit 4700149

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

samples/LinkedIn.gs

+4-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ function getService() {
4242
// Set the client ID and secret.
4343
.setClientId(CLIENT_ID)
4444
.setClientSecret(CLIENT_SECRET)
45-
45+
46+
// Set the scope of the request.
47+
.setScope('r_network')
48+
4649
// Set the name of the callback function that should be invoked to
4750
// complete the OAuth flow.
4851
.setCallbackFunction('authCallback')

0 commit comments

Comments
 (0)