google-api

GoogleApps java client information

蹲街弑〆低调 提交于 2019-12-23 02:59:14
问题 I am in a way of writing the java client on GoogleApps for managing the users and groups.I previously worked on the provisioning api and which is now deprecated. As from the info, Admin Sdk's directory api need to be used. I went to the links that were given but i couldnt find any sample client to start working on the directory api. Please guide me on to get the info or a sample client to start with Thanks 回答1: You are right. There is no (Admin SDK) Directory API sample to follow (list of API

Google Admin Directory API: Add User Employee Details

拟墨画扇 提交于 2019-12-23 02:42:09
问题 I already have a working function for adding user using Google Admin Directory: string password = Random_Password(); User newuserbody = new User(); UserName newusername = new UserName(); UserOrganization newuserorg = new UserOrganization(); newusername.GivenName = GivenName; newusername.FamilyName = FamilyName; newuserbody.Name = newusername; newuserorg.Department = Department; newuserorg.CostCenter = Country; newuserorg.Title = JobTitle; newuserbody.Organizations = newuserorg; newuserbody

Google drive rest API, Download files from root folder only

送分小仙女□ 提交于 2019-12-23 01:55:22
问题 I am trying to download files in the root directory only. Currently I am not specifying any folders as I do not know how to so it downloads the most recent files that are in other folders that aren't the root. All I would like are the files in the root. The code that is getting the files and the download URLs is below: public static void startDownload() throws IOException, ParseException { Drive serv = getDriveService(); FileList result = serv.files().list().setMaxResults(10).execute(); /

OAuth 2.0 for Installed Applications - where do I get a redirect_uri

Deadly 提交于 2019-12-23 01:55:21
问题 I'm working through the instructions to use OAuth2 to get access to Gmail in an installed (Windows) application, on the page https://developers.google.com/identity/protocols/OAuth2InstalledApp. It all seems straightforward until I get to the part about "making a token request". One of the parameters to the POST I have to do is redirect_uri, which it says is "The redirect URI you obtained from the Developers Console." I have obtained my ClientID and ClientSecret from the Developers Console,

OAuth 2.0 for Installed Applications - where do I get a redirect_uri

佐手、 提交于 2019-12-23 01:55:12
问题 I'm working through the instructions to use OAuth2 to get access to Gmail in an installed (Windows) application, on the page https://developers.google.com/identity/protocols/OAuth2InstalledApp. It all seems straightforward until I get to the part about "making a token request". One of the parameters to the POST I have to do is redirect_uri, which it says is "The redirect URI you obtained from the Developers Console." I have obtained my ClientID and ClientSecret from the Developers Console,

Smart Lock sign-in hint setPhoneNumberIdentifierSupported not working

隐身守侯 提交于 2019-12-23 01:41:39
问题 I am trying to get user phone number with a HintRequest PendingIntent intent = Auth.CredentialsApi.getHintPickerIntent( googleApiClient, new HintRequest.Builder() .setPhoneNumberIdentifierSupported(true) .setEmailAddressIdentifierSupported(false) .build()); try { startIntentSenderForResult(intent.getIntentSender(), REQUEST_CODE_RESOLVE_PHONE, null, 0, 0, 0); } catch (IntentSender.SendIntentException e) { e.printStackTrace(); } But getting no results and Activity.RESULT_CANCELED. The nubmer is

use tools:overrideLibrary=“org.springframework.android.rest.test” to force usage

懵懂的女人 提交于 2019-12-23 01:19:10
问题 I got the following error message: Error:Execution failed for task ':Project1:processBetaDebugManifest'. Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 17 declared in library /Users/motianim/Project/mobile-ws/src/build/intermediates/exploded-aar/src/Projecct/unspecified/AndroidManifest.xml Suggestion: use tools:overrideLibrary="org.springframework.android.rest.test" to force usage I tried following things to solve the issue: installed google apis 17. re

Exporting file from google drive using googleapi in node.js

China☆狼群 提交于 2019-12-23 00:42:21
问题 I am using googleapi to export the file from a google drive. I have the following code in my export.js. When I run this file, even though i have given the mimeType it throws an error saying "The API returned an error: Error: Required parameter: mimeType" var drive = google.drive({ version: 'v3', auth: auth }); var dest = fs.createWriteStream('./public/data/myfile.txt'); drive.files.export({ fileId : fileID, mimeType : 'text/plain' }, function(err, response) { if (err) { console.log('The API

Can an Android-App-Restricted API key be used for Google Distance Matrix?

坚强是说给别人听的谎言 提交于 2019-12-22 17:58:36
问题 I enabled Google Distance Matrix API and restricted the key for Android Apps because I will be sending http queries from my android app to receive json response: Without restriction, it works and I get expected result. But when it's restricted (with my package name and SHA1) I get a failure message in the json object with a "REQUEST_DENIED" status saying: This IP, site or mobile application is not authorized to use this API key. Request received from IP address [ip_addr], with empty referer.

Android Google Api for SpreadSheet

情到浓时终转凉″ 提交于 2019-12-22 17:09:24
问题 I'm trying to figure out how to use Google Api for accessing/editing Google SpreadSheet. I want to have a connection always with the same spreadsheet from many devices. I got examples using the AccountManager, but i should not use the user account. There is any good turorial? Right now i've got the following..is that right? AccountManager accountManager = AccountManager.get(this); ArrayList googleAccounts = new ArrayList(); // Just for the example, I am using the first google account returned