File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ async function quickstart() {
105
105
106
106
// Get a specific participant by identifier. We disable 'raiseError' here
107
107
// so we can handle the 404 case ourselves.
108
- const participantIdentifier = "YOUR_PARTICIPANT_IDENTIFIER" ;
108
+ const participantIdentifier = "YOUR_PARTICIPANT_IDENTIFIER"
109
109
110
110
if ( participantIdentifier != "YOUR_PARTICIPANT_IDENTIFIER" ) {
111
111
url = `/api/v1/administration/projects/${ rksProjectId } /participants/${ participantIdentifier } ` ;
@@ -118,7 +118,8 @@ async function quickstart() {
118
118
119
119
// NOTE: This piece is only necessary when using MyDataHelps Embeddables in a custom app.
120
120
// Most API use cases do NOT require a participant token.
121
- const scopes = "api user/*.read"
121
+ // Be sure to request the correct scope(s) for your needs.
122
+ const scopes = "Participant:read SurveyAnswers:read"
122
123
const participantAccessToken = await getParticipantAccessToken ( serviceAccessToken , participant . id , scopes ) ;
123
124
console . log ( `\nObtained participant access token for ${ participant . id } : ${ participantAccessToken } ` ) ;
124
125
}
You can’t perform that action at this time.
0 commit comments