Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion adminSDK/alertcenter/quickstart/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ repositories {
dependencies {
compile 'com.google.api-client:google-api-client:1.20.0'
compile 'com.google.auth:google-auth-library-oauth2-http:0.11.0'
compile 'com.google.apis:google-api-services-alertcenter:v1beta1-rev7-1.25.0'
compile 'com.google.apis:google-api-services-alertcenter:v1beta1-rev20190221-1.28.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.google.api.client.json.JsonFactory;
import com.google.api.client.json.jackson2.JacksonFactory;
import com.google.api.services.alertcenter.v1beta1.AlertCenter;
import com.google.api.services.alertcenter.v1beta1.AlertCenterScopes;
import com.google.api.services.alertcenter.v1beta1.model.Alert;
import com.google.api.services.alertcenter.v1beta1.model.AlertFeedback;
import com.google.api.services.alertcenter.v1beta1.model.ListAlertsResponse;
Expand All @@ -36,12 +37,13 @@ public class AdminSDKAlertCenterQuickstart {

private static final String APPLICATION_NAME = "Google Admin SDK Alert Center API Java Quickstart";
private static final JsonFactory JSON_FACTORY = JacksonFactory.getDefaultInstance();

/**
* Global instance of the scopes required by this quickstart. If modifying these scopes, delete
* your previously saved tokens/ folder.
* Global instance of the scopes required by this quickstart.
* If modifying these scopes, delete your previously saved "tokens/" folder.
*/
private static final List<String> SCOPES = Collections
.singletonList("https://www.googleapis.com/auth/apps.alerts");
private static final List<String> SCOPES =
Collections.singletonList(AlertCenterScopes.APPS_ALERTS);
private static final String CREDENTIALS_FILE_PATH = "/credentials.json";
private static final String DELEGATED_ADMIN_EMAIL = "admin@xxx.com";

Expand Down