TokenResponseException: 401 Unauthorized Exception when trying to access Admin SDK Google API.
问题 I am trying to do an extract of users in my domain by accessing the Google Admin SDK API. I am however given a 401 unauthorized exception. The code below is my settings class that contains my method to call the API. package com.brookfieldres.operations; import java.io.File; import java.io.IOException; import java.security.GeneralSecurityException; import java.util.ArrayList; import java.util.ResourceBundle; import org.apache.log4j.Logger; import com.brookfieldres.common.Constants; import com