Migrating users from one google add-on to another - add-on

I have developed a google add-on and somehow, somewhere along the line it got copied and both are published, so now I have two identical google add-ons each with their own users. As this is not an ideal situation, is there any way to migrate users from one to the other? Or can I at least get a message to the users of one that says they should switch to the other before I delete it? Thanks in advance.

Related

using google classroom api to change course ownerId

How? Easiest method?
Tried using postman on desktop, googles OAuth2 playground and google help pages to try make sense of what to do. Ended up using GAM as this is the easiest and gives the most helpful responses.
I have tried changing this from multiple places and i always get the error:
ERROR: 400: #UserInIllegalDomain Invitation cannot be created for user in this domain - failedPrecondition
the command:
gam update course 8077159861 owner hiddenusername#longleypark.ac.uk
(username is DEFINITELY correct ive just hidden it as its not vital information)
Any help would be much appreciated, from what i can tell some guides said to add longleypark.ac.uk to whitelisted domain under classroom but because this is the primary domain for this g suite it says you cant add your current domain so this isnt an option.
I believe the google API is broken. If anyone can prove otherwise would be a great help.
Google API support haven't managed to give me any proper response, keep saying they will test and let me know but I haven't been informed of any results yet.
Google forums support has informed me once a user account is deleted and 20 days have passed the account becomes unrecoverable which means any classrooms they are the owner of become "orphans" which means "limited functionality" and the inability to change the owner ever again, the only solution is to recreate the classroom from scratch, unfortunately along with the original account all the documents submitted to that classroom are also lost.
There are NO ways around this even though the ownerId field for a classroom really should be editable from some sort of database management tool or admin console/API.
I have run into this problem today. Thought using the API I'd be able to swap the ownerId, but no.
Bizarre that Google don't let you do this as a Google Workspace admin. We know have 3 GCSE sets which are unusable with 3 months of the 2 year course left. Very frustrating.

How to bulk update "Authorized JavaScript Origins" in Google API Console?

Currently, I have been tasked to utilize the Google People API to ask for a user's basic Google information along with their public phone numbers. So far the results have been positive.
The solution my team and I have incorporated the Google People API integration in has the capacity to be utilized across thousands of domains. As a result, my question is simply, How can my team members and I ensure that any our clients that utilize our solution with their own particular domain get our new functionality built with the Google People API?
Keep in mind, our clients have the flexibility to have http/https and any subdomain on their site. Entering each domain possibility for our client base one by one would not be an easy task. I'm seriously hoping there is a solution around the single, explicit origin entries.
Thank you for your time and help.
Warning:
You must remember that if this is source code you are giving your clients that you are not allowed to release your client id and client secret. This includes plugins and scripts.
On November 5th 2014 Google made some changes to the APIs terms of Service.
Asking developers to make reasonable efforts to keep their private
keys private and not embed them in open source projects.
So if your clients could view the code of your application and see your client id and secret you should not be giving it to them.
Read more about this issue Can I really not ship open source with Client ID?
Recommendation:
The best solution for you will be to instruct your users now to create there own project on Google Developer Console and create their own JS origins.
You may just have to provide your own wrapper around the target API where you authorize the client request yourself and then do the request from Google using your own credentials.

Can't access Facebook configuration page

I'm trying to access the Facebook config page for my bot and I keep getting "Sad bot is sad... can't find a bot named bot_name"
Is anyone having issues with the platform right now?
Microsoft's team solved it, as it's showed here.
We're not having any portal specific problems. If you want to share your bot handle with us at BotFramework#microsoft.com I can see if there's anything interesting in our logs.
-- just a note, we were actually having portal problems, it was just impacting only one box in one datacenter making it erratic to track down. Thanks for the report!

Google my business - API to update opening hours of places?

I would like to update "Opening hours" for all stores of a company in Google my business, through an automated API (a REST service for example).
My customer has hundreds of stores, and currently this is done manually.
I've read there is NO automated way to do this, a user needs to fill manually every opening hour in the google my business portal.
I can't believe that, and I'm wondering how big companies with a lot of stores take care of that problem, especially for "exceptional closings", etc.
I have already search for a long, and didn't found anything.
The only ability supplied by google is to upload a list of stores, through a file, and this file doesn't contain any information regarding opening hours (am I wrong ?).
I would like to be able to update store list AND opening hours regularly, through an API (My Business, or Places).
Does google propose a such API, or do you have any suggestion to handle this concern from a programmatical point of view ?
Thank you
There was no Google API for My Business at the time when I posted my question, but meanwhile Google has released it and also provides samples for many languages : https://developers.google.com/my-business/
Thanks to eton_ceb for the notification.

Google Apps Marketplace Migration

We have a Google Apps Marketplace App. Or more precisely, we have 2: one in the old marketplace and one in the new. Both point to the same URL, both do exactly the same thing (OAuth2 authenticating the user(even users from the old Marketplace,, because we handle this users like the "normal" users coming from the Chrome Web Store ).
Now Google wants us to move the users from the old Marketplace app to the new one.
How do we do that?
According to Google's document we should call an UpgradeApp API for every domain.
This requires that we find out all the domains (we don't know them because we don't care, if the user is a marketplace user or not).
So we should probably use licenseNotification on the old Marketplace app, to find out all domains and migrate them one by one?
To try this, I tried to issue the API from API Explorer (https://developers.google.com/apps-marketplace/v2/reference/licenseNotification/list) but got a message (403 FORBIDDEN complaining that I should activate the API . How do I do this? (I already have a project where the Marketplace API and Marketplace SDK is enabled).
Will this approach work at all?
Are there simpler ways of doing this?
The API explorer approach works, I just tried.
Make sure you are providing correct applicationId which is the key here.
GET https://www.googleapis.com/appsmarket/v2/licenseNotification/applicationId

Resources