Is it possible to use Google Slides API to enable me to take an email lets say admin#gmail.com from my custom 3rd party website and add it so they can view the presentation only? I would then hopefully have a checkbox on their profile on the site so when it is unchecked it will remove them from the presentation and so on.
This would be a really good feature as it would reduce the admin burden and help me keep track of who I've allowed who to view my documents.
If this is possible does anyone have the code for it?
Sure, you can easily do that using Drive API with a Permissions.Create [1] request. You can start from the quickstart [2] to set up the client in order to be able to make requests. In your case, you would need to know the file ID and use the following parameters:
{
"role": "reader",
"type": "user",
"emailAddress": "user#email.com"
}
[1] https://developers.google.com/drive/api/v3/reference/permissions/create
[2] https://developers.google.com/drive/api/v3/quickstart/js
Related
My use case requires me to have users pick their desired voice for the autopilot questions. The thing is there doesn't seem to be a way of Dynamically choosing the Stylesheet of the Assistant (without actually updating the resource).
My perfect scenario would be something like:
connect.autopilot(SID, {voice: 'Polly.Joanna'})
I've also checked in The JSON Encoded Actions Schema but it doesn't seem to have a way of changing the voice of a specific Autopilot Action like this:
"say": {
"say_voice": "Polly.Joanna",
"speech: "Example speech"
}
The only reasonable solutions so far seem to be either:
create an Assistant for each user. (May lead to overloading Twilio)
have only one Assistant but update its stylesheet before connecting the user (This would probably lead to concurrency issues, right?)
Any other suggestions on how to tackle this problem? Thanks in advance
You are right, an Assistant has one directly linked StyleSheet and that is how you define the voice. You also don't want to update the Assistant with a new StyleSheet as that would likely change the voice of any calls that are already in progress (though I haven't tested this).
You do suggest creating an Assistant for each user. According to the Autopilot documentation you can create up to 500 Assistants per account. I don't know how many users you have that need Assistants, but that could work? I would guess that if your users want to customise the voice, they may end up wanting to customise other aspects of the Assistant, including the phrases it uses, so it might be useful to have an Assistant each too.
I don't have any other ideas for this though, I'm afraid.
[NOTE: This may be not the right place for this question. Can you please refer me to the right place if this is not.]
I know you can login to GMB, verify the business and than add the "Order Online" link from the GMB console.
We are an agency and expanding fast so we are trying to find out a way of adding our link to all our customer's GMB pages without needing to getting verified for each of them separately but rather using the API if possible.
Anyone here has experience doing this? I looked through the API, but can not find anything like this.
It is not possible to influence this attribute. See this article
In some cases, links to certain third-party booking services will appear automatically on business listings. These links cannot be edited in Google My Business.
If you want to remove or fix a link in your own listing, please contact the third-party provider’s support team or a technical contact to request they remove your data from the information they are sending Google.
I am using Microsoft Graph API create a Document Library in a SharePoint Online site. I would like to know if there is a way to create at the same time I create the doc library a navigation link.
When working directly on SharePoint online there is a checkbox "Show in navigation link", which will automatically create a navigation link on the left column.
I could not find anything in the documentation, I would like to know if there is a way to do that thanks to the API.
POST https://graph.microsoft.com/v1.0/sites/{site-id}/lists
{
"displayName": "TEST1",
"list": {
"contentTypesEnabled": false,
"hidden": false,
"template": "documentLibrary"
}
}
When checked, SharePoint is actually doing to things behind the scenes. First, it creates the Document Library. Then it adds a link to the Page. This isn't supported in v1.0.
I expect it will eventually become available given the recent introduction of the sitePage resource to the Beta API. At the moment there isn't a way to "update" an existing page so it likely wouldn't support your scenario today but it's logical to assume PATCHing a sitePage is coming at some point. .
We use EventBrite for managing some free events: works great.
We also make extensive use of the waitlist feature.
I would like to script the synchronisation of the EventBrite ticket list contacts (sold and waitlist) with another system.
(yes, I know, I can manage contacts in EventBrite. But we have an existing system and I want to keep using that)
There does not appear to be an obvious way to retrieve any information about people on the waitlist via the API? Is this possible?
Each of the available API access methods are listed here:
http://developer.eventbrite.com/doc/#methods
Waitlists are not currently available.
This should do the trick. Run it in your web browser to see an xml list of all attendees:
https://www.eventbrite.com/xml/event_list_attendees?id=123456&app_key=your_app_key
You'll have to signup for a developer's key to run the query though: https://www.eventbrite.com/api/key/
The down and dirty method to get the eventID to make sure it's working is to view the page source of your EventBrite page, and search for "eventID" or "eid".
You can get the event id through the EventBrite API as well: http://developer.eventbrite.com/doc/events/
While https://developers.google.com/accounts/docs/OAuth2Login is very descriptive, I cannot seem to wrap my head around how to translate into a Google Apps Script.
The ultimate goal is to have the user click a link, authorize access to their userinfo. I will then use their email address or userId to assign the appropriate spreadsheet to other Google Apps Scripts UIs.
I am certain that some sample code would get me on my way.
Is it even possible?
Can a linked be utilized to make this happen? http://support.google.com/sites/bin/answer.py?hl=en&answer=1224166&topic=1224152&ctx=topic
The trouble is that when you publish your script as a service, it executes under your ID. All the authorization has to be done in the script editor. So, when a third person clicks a button or link or whatever, the script runs under your user ID and all you get back is your own user id.
In short, the answer is no. Sad, but true :(
Check out the OAuth code on the Google Code site. There are some great examples along with the client (and server) code in several different programming languages. Follow along with the samples on how to get the tokens needed.