Google Connection Apis not fetching All of its contacts, few contacts are missing - google-contacts-api

I am trying to fetch google contacts. Its not showing all contacts. Few contacts are missing

Related

Google DataStudio cannot take parameter from URL, but could I use Google Apps Script Google Data Studio data connector to pass the parameter value?

I have a Google DataStudio Reports, with an "account ids filter", for example I may have 100 client accounts.
I want to share this report with these 100 accounts. But each account should only see their own report.
But Google DataStudio does not take parameter from url, so I cannot pass account id value into the DataStudio report url to filter out the report accordingly.
I have a thought. What if I use Google Apps Script to create a Google Data Studio data connector, and use this data connector as the data source for my Google DataStudio reports.
Then I will share this report with my 100 client accounts.
Each client account will access this report (the data source is Google Apps Script data connector). And the Google Apps Script data connector would run under this client's google account. and the Google Script will do the following jobs, authenticate the this account, know which account it is based on this account's google account, fetch the data of this account only , as data source for the Google DataStudio Report. This way, each client would get the report for himself/herself.
Would that work? Do anyone have resources or codes can share for this problem and this solution?
In your connector code, use getEffectiveUser() (reference) to get the user's Id and filter your data by that.
Using your connector, create a data source and enforce viewer's credentials.
Create a dashboard from that data source.
When your clients view the dashboard, they will have to authorize the connector the first time. Then they will only see data that is applicable to them.

Get count of user documents in Google Drive

How can I get the list of all users and the number of Google Documents they have in Google Apps using Google Script?
Regards
If you're simply looking to list the users and the number of docs, you can use the reports API for Drive activity: https://developers.google.com/admin-sdk/reports/v1/reference/usage-ref-appendix-a/users-docs.
Getting all users uses a similar service, and is practically written for you: https://developers.google.com/apps-script/advanced/admin-sdk-directory.

Integrating Google Spreadsheets in my website

I have been looking at the Google Drive Platform for Web here : https://developers.google.com/drive/web/about-sdk , But I am not sure if it suits my requirement. Here is what I want to do
After the users login on my site, I want to show a spreadsheet from my Google Drive to only the logged in users. Now if they need to be connected to their account on my website, that's fine with me. All I want is when I create their account, they create some kind of authentication token with google account, and now they are able to see all the spreadsheets that I share with them from google drive account.
Please suggest what is the good option for me to achieve this ?
Update : There could be a few spreadsheets, each per user, and I don't want a user to see the spreadsheet that is not for him, the spreadsheets should not all be public. I will show the spreadsheet to the user that belongs to him, & ideally I would want him not login to his google account when he logs into my web app.

How to delete a post from a Google Group?

How can I delete a post from a Google Group using Google Apps Scripts?
How can I get the list of topics?
I would imagine that because Google Groups underlying technology is email you will not be able to delete a post as it has been sent already.
You will probably have to use Gmail Services to accomplish the list of topics task.
https://developers.google.com/apps-script/service_gmail

Access Google+ Data in Google Contacts

If a contact has a public Google+ profile and this data appears in your Google Contacts, is it possible to access that data via Google Apps Script? If so, how?
For example, I add a contact with only a full name and an email address. That contact has a public Google+ profile that includes a phone number. Their phone number will show up in my Google Contacts (including a search from Google Contacts) but the following code will not return their phone number:
var contacts = ContactsApp.getContacts();
for (i in contacts) {
phones = contacts[i].getPhones();
for (j in phones) {
Logger.log(phones[j].getPhoneNumber());
}
}
How do I access the Google+ phone number via Google Apps Script?
It is not possible to retrieve this information. At least, not directly via Google Apps Script Contacts Services.
I also think that this should be possible. Please open an enhancement request on Apps Script issue tracker.