Frequently contacted contacts in Google Contacts API - google-contacts-api

I'm trying to get the frequently contacted contacts from
Google Contacts API version 3.0.
I have checked the Google documentation https://developers.google.com/google-apps/contacts/v3/ that there is no option provided for getting frequently contacted contacts.
Is this API providing the data for frequently contacted contacts or not? Please let me know.

Unfortunately, I cannot also find related documentations regarding your case. I have found this SO post which stated that the "Most Contacted" section of the Google Contacts is inaccurate.
To perform the task of fetching the "most contacted" I'm requesting the user for readonly mail permission, and am actively reading the last 3 months email headers. This produces the same results, but with a huge privacy penalty. I wish google would've supported this natively.
You may, however, file a feature request for this.

Related

User does not have sufficient permissions for this profile. - Google Analytics API v4

I've created a few Google Analytics V4 only properties a while ago.
Big mistake.
I'm using Google Spreadsheets to track the progress and such, and had to waste time migrating the API for it using OAuth2 and the Google Analytics Data API (GA4)
All went fine. Until a few weeks ago when it stopped working. I see there's a new version, Google Analytics Reporting API v4
I've procrastinated, so I'm doing the migration now, but hit a brick wall:
"User does not have sufficient permissions for this profile."
I don't understand why I get this issue. Remade the credential in the developer console, redone the Oauth2 process, recreated the tokens, checked everything still this issue.
So I decided trying the "Try this API", I get into the same issue
Which is weird, I'm logging in using the analytics admin account. Also this error is weird:
"This error may be due to using an insufficient credential type. Try using OAuth 2.0.",
since I'm basically logging in using the provided pop-up
The view id I took from here:
I've tried with any ID I could find (yeah, even MEASUREMENT ID and STREAM ID) and multiple sites (views)
What am I missing?
your error
"User does not have sufficient permissions for this profile."
Basically means that the user you are authenticating with does not have permission to access the view id you are using. Authorize your code with user that has access to it. I have a video on this User doesn't have any google analytics accounts easy solution
confusion
I am however a little confused as to what you are doing. Your code says that you are using the Google Analytics reporting api, your using a view id which implies that this is a universal analytics account.
Yet you are trying to use the Google analytics data api which is intended for use with Google Analytics GA4 accounts.
Google Analytics Data API (GA4)
and won't work with your universal analytics account with a view id, it only works with the new Google Analytics GA4 accounts.

Is there a way to automatically delete emails from a Google Workspace Google Groups?

I was wondering if there is a way to automatically (or on a trigger) delete emails from a Google Group.
I use a Collaborative Inbox Group for archiving automated emails.
I looked at the Google Apps Script overview for Google Groups, but I don't see anything. It only seems like you can do this from GmailApp...
I also read this thread from 2012 but nothing helpful there
Answer:
Programmatically this isn't possible.
More Information:
The GroupsApp class of Apps Script only has read methods available for use - there is not a way of executing any write data using the class - for example deletion of emails.
Emails are sent to everyone in the group when a post is made (as per subscription settings). If you want the Email to be deleted then as you have already pointed out, you will need to use GmailApp to delete it from the recipients' inboxes.
In short: All mailbox manipulation must be done using the Gmail API (or GmailApp).
Feature Request:
You can however let Google know that this is a feature that is important for access to their APIs, and that you would like to request they implement it.
Google's Issue Tracker is a place for developers to report issues and make feature requests for their development services, I'd urge you to make a feature request there. The best component to file this under would be the Admin SDK component, with the Feature Request template.

Receiving Time Based (Every 15 minutes) Summary of failures for Google Apps Script:

I canceled my Gsuite account a few weeks ago. I have transferred my domain to a new provider and set up a redirect for the email address that was associated with my canceled Gsuite account.
I have started Receiving Time Based (Every 15 minutes) Summary of failures for Google Apps Script:
I cannot access https://script.google.com/home/triggers? to remove the script ( I canceled the Gsuite account before I realized I had an old script running).
I have read all of the previous answers to this question however they are for developers who have still got access to https://script.google.com/home
I have contacted Google support however they are advising me to ask the question here.
Considering my circumstances am I able to delete the script?
Answer:
There is nothing that users from Stack Overflow can suggest you do in this case - aside contact Google Support again. This is an issue with their internal system sending out emails erroneously.
More Information:
These emails are sent out automatically by the system and so aren't stoppable your end, especially if your G Suite account no longer exists. You need to contact Google Support for this, G Suite Support directly is a good bet, though without your G Suite account I do not know if you will be able to use this outlet.
The regular Google Contact page can be found here, alternatively you can attempt to use the Send Feedback option available in the Gmail user interface when clicking the cog in the top right (⚙️).
A Temporary Fix:
In the mean time, all I can suggest you is add an email filter to deal with emails that come from apps-scripts-notifications#google.com - either move them directly to trash on receipt, or add them to spam. This isn't a permanent solution, I know, but it might be enough to alleviate the annoyance of all these emails until the situation gets sorted out with Google directly.
References:
G Suite Support
Google - Contact Us

How to use the calDAV protocol on a Flex application?

I'm a trainee and am learning about Flex, so I'm a total noob at this... My boss asked me to research the calDAV protocol for us to use in a calendar app we already have. I was trying to understand the Google API but I have no clue how to put this in our code. He wants me to make it possible to share events added to our calendar in Google Calendar or IPhone, for example. I'm starting to get desperate :(
It appears as the Google CalDAV API is deprecated and it will likely go offline at some point soon.
Edit: The Google CalDAV API is not being deprecated, only the previous endpoint. Wording below has been amended to recommend Google's own API as an alternative method.
CalDAV itself is basically just a way to format information about calendar events in a specific way for communicating between services. It also defines how to send and receive this information. Here's the CalDAV specification for more info.
If the requirement is to work with Google Calendar but not specifically with CalDAV, you could look at v3 of their API. It appears to be based more around JSON which should make it slightly easier to work with in AS3. There appears to be AS3 libraries out there for Google Calendar, but they seem to be outdated and unsupported, so it's likely that they won't work with the latest versions of the API.
The Google API relies on REST calls. It basically means that you send HTTP GET, POST, DELETE etc requests to specified URLs on Google's servers to do specific tasks or to request data.
In order to use the API you need to authorize your requests. The most common way to do this is to use OAuth 2.0 - in which your user grants your application access to its Google account, and in turn your application receives a token that needs to be sent with each request.
This isn't a complete answer to your problem, but I hope it outlines the process and gives you some useful links to read.

Rapportive details save to google contacts

Is there any option to save updated contact details provided by Rapportive to google contacts ?
Any greasemonkey script or Firefox plugins ?
I've never seen that sort of Greasemonkey script of Firefox plugin, but conceivably it would be doable to rig up something to that effect. It all depends on Rapportive's Terms of Service, however.
Programmatically, Rapportive doesn't currently offer an outbound API - they currently only offer a way to programmatically send info to them regarding contacts. So you'd have to go about it another way. Scraping the info that's displayed could be an option - but I'd do due diligence first & be sure to read their policies. They might prohibit that sort of thing (they're owned by LinkedIn, whose TOS are known to be very restrictive).
You could also accomplish this sort of thing using FullContact (disclosure - my company). Our Address Book app (in beta) adds photos, social profile links, titles, etc. - the same sort of data returned by Rapportive - to Google Contacts and syncs in real-time.
We don't use Rapportive's data - the data is all public social profile data, returned by our social profile APIs - but the Address Book should help you do exactly what you're looking to do.