google-api-client

Fatal error: Uncaught exception 'Google_IOException'

放肆的年华 提交于 2020-01-25 12:03:32
问题 I am trying to make work a php code for listing the users of a google user. I have followed a youtube tutorial and tryed the solutions proposed in this one But I still get this annoying error when I call the authenticate method : Fatal error: Uncaught exception 'Google_IOException' with message 'HTTP Error: (0) couldn't connect to host' in D:\xampp\htdocs\yac\proxy\lib\google-api-client\io\Google_CurlIO.php:128 Stack trace: #0 D:\xampp\htdocs\yac\proxy\lib\google-api-client\auth\Google_OAuth2

Fatal error: Uncaught exception 'Google_IOException'

谁都会走 提交于 2020-01-25 12:02:46
问题 I am trying to make work a php code for listing the users of a google user. I have followed a youtube tutorial and tryed the solutions proposed in this one But I still get this annoying error when I call the authenticate method : Fatal error: Uncaught exception 'Google_IOException' with message 'HTTP Error: (0) couldn't connect to host' in D:\xampp\htdocs\yac\proxy\lib\google-api-client\io\Google_CurlIO.php:128 Stack trace: #0 D:\xampp\htdocs\yac\proxy\lib\google-api-client\auth\Google_OAuth2

GetLastLocation always returns null

南笙酒味 提交于 2020-01-25 10:30:29
问题 I try to access the last known location in a Fragment as explained here in my onCreate: public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); mGoogleApiClient = new GoogleApiClient.Builder(getActivity()) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(LocationServices.API) .build(); } in my onResume: @Override public void onResume() { super.onResume(); mGoogleApiClient.connect(); } The Fragment implements GoogleApiClient

What causes a Google Drive application to request permission to “Perform these operations when I'm not using the application”

社会主义新天地 提交于 2020-01-23 17:46:05
问题 When creating Google Drive applications there are a number of permission "scopes" that can be specified to indicate to the users what permissions are required to run that application. One of these permissions: Perform these operations when I'm not using the application Causes a lot of concern amongst our users. We could not find any definitive explanation of what causes this permission to be listed. The only possibility we could think of is that using server-side flow for the OAuth2 means

Google Client API setAccessToken() before isAccessTokenExpired() results in invalid credentials

允我心安 提交于 2020-01-16 08:40:09
问题 I am working with the Google Client API in Laravel to allow my users to sync their calendars with Google. Everything works, but the issue I am running into is when their tokens expire they are getting an "Invalid Credentials" error, in order to fix it they have to log out and log back in which I am trying to avoid. I don't understand why setAccessToken() is to be called before isAccessTokenExpired(). I need to check if the access token is expired before I set it but if I do it this way then

Symfony2.3, How to register a 3rd party bundle in Kernel, and load it from a Controller?

痴心易碎 提交于 2020-01-16 04:06:06
问题 I would like to get some help with symfony2 regarding the bundle registration in the Kernel, Ive read most of symfony2 cookbook and doc for exemple : How to install 3rd party Bundles But yet everytime I failed doing so. I am using symfony 2.3 with composer, both up to date. Today I would like to use a 3rd party bundle called "google/apiclient" found on packagist.org, therefor i add the following line "google/apiclient": "dev-master" to my composer.json file which is located at the root of my

Why would I get Login Required for Calendar List Query but not for Calendar Queries

不想你离开。 提交于 2020-01-15 14:14:00
问题 Why would: events = calservice.events().list(calendarId='CAL_ID@group.calendar.google.com', singleEvents='true', showDeleted='false', timeMin='{:%Y-%m-%dT%H:%M:%SZ}'.format(now), timeMax='{:%Y-%m-%dT%H:%M:%SZ}'.format(nowplusonemin)).execute(http=decorator.http()) https://www.googleapis.com/calendar/v3/calendars/CAL_ID@group.calendar.google.com/events?timeMax=2013-06-12T11%3A04%3A09Z&showDeleted=true&alt=json&singleEvents=true&timeMin=2013-06-12T11%3A03%3A09Z work and return me the events for

Why would I get Login Required for Calendar List Query but not for Calendar Queries

孤街浪徒 提交于 2020-01-15 14:12:46
问题 Why would: events = calservice.events().list(calendarId='CAL_ID@group.calendar.google.com', singleEvents='true', showDeleted='false', timeMin='{:%Y-%m-%dT%H:%M:%SZ}'.format(now), timeMax='{:%Y-%m-%dT%H:%M:%SZ}'.format(nowplusonemin)).execute(http=decorator.http()) https://www.googleapis.com/calendar/v3/calendars/CAL_ID@group.calendar.google.com/events?timeMax=2013-06-12T11%3A04%3A09Z&showDeleted=true&alt=json&singleEvents=true&timeMin=2013-06-12T11%3A03%3A09Z work and return me the events for

Where does a GoogleClientApiConnected exception come from?

末鹿安然 提交于 2020-01-14 01:38:12
问题 For a project, I am creating an android app that includes a WebView , a service that can switch from background to foreground and the LocationManager relying on the NETWORK_PROVIDER first and the GPS_PROVIDER later. In very random cases, upon starting the app, I find this exception in my logcat-output: E/GoogleApiClientConnecting: GoogleApiClient connecting is in step STEP_SERVICE_BINDINGS_AND_SIGN_IN but received callback for step STEP_GETTING_REMOTE_SERVICE java.lang.Exception at qw.b(PG:25

Use PanoramaApi with custom equirectangular image from Assets folder

旧巷老猫 提交于 2020-01-13 07:08:31
问题 I have an equirectangular image like this: I have the image in my AssetsFolder, therefor I pass this uri to the Panorama.PanoramaApi.loadPanoramaInfo method: Uri uri = Uri.parse("file:///android_asset/panorama/equi_1.jpg"); Somehow, if I check the result.getViewerIntent, I get null as return value. My gut feeling says this could have to do with the fact that this image is not created with the google camera app, and therefor missing some meta tags, but I'm not sure. The complete code of my