Skip to Main Content
// In Javascript, you can pass 'request_visible_actions' to gapi.auth.authorize. // The app activity types requested in the snippet are AddActivity and // ReviewActivity. var actions = ['https://schemas.google.com/AddActivity', 'https://schemas.google.com/ReviewActivity'].join(' '); gapi.auth.authorize({ client_id: clientId, scope: scopes, request_visible_actions: actions, immediate: true}, signInCallback); }