Change Email Notification Settings on a Google Sheet using Google Sheets API - google-sheets-api

Can someone point me at the API method for changing the "Email Notification Settings" on a Google Sheet?
Thanks.

Programmaticaly, you cannot change Google Sheets UI settings like notification rules
The closest you can do is to create a webhook that will watch for changes and implement the request of your choice (e.g. sending an email) when a certain change of a Drive File (inlcluding Google Sheets) occurs.
You can implement this by watching for file changes with the Google Drive API
and receiving push notifications.

Related

How to make whatsapp perform actions on behalf of react-native application?

I am trying to integrate whatsapp in my react-native app. So far the resources that I have found only tell how to send a message or open whatsapp via Linkurl from react-native application. But I want to take a step further and perform action from whatsapp. Imagine like you trigger the notification and you select the Yes and No and that performs the respective actions I want to make similar functionality but on whatsapp. After a user perform certain activity from the react-native application I want to send notification on whatsapp and without opening the react-native application the user should be able to perform action. Is there a way I can achieve this functionality.
React Native/JS do not have support to 'whatsapp://' scheme.
The following Schemes Only:
mailto; //For Mailing
tel; //For Telephone
sms; //For SMS
http / https; //For Hyperlinks
You can use this method to send WhatsApp message direct to a number.
https://wa.me/<phone#>

How to send media files on whatsapp programmatically using click to chat feature?

I have to use whatsapp's click to chat feature for automating the process of sending messages to unsaved numbers. I am currently using selenium to automate the process. I am able to send text messages only for now. I was wondering that it might be possible to send other media files as well like images and videos.
There are 2 unused parameters in my url of click to chat feature, "source" and "data". I thought using these might enable me to send media files but I Haven't been able to do it yet.
Example URL for one of my click to chat messages:
https://web.whatsapp.com/send?phone=phoneNumHere&text=Hi&source=&data=
Can anyone confirm that either its possible or not. If its possible what would be the right way to do it?
Thanks
Similar question: Whatsapp Automated Bot not able to search in WhatsApp Contact List
Send images, videos and docs using Selenium:
//To send attachments
//click to add
driver.findElement(By.cssSelector("span[data-icon='clip']")).click();
//add file path
driver.findElement(By.cssSelector("input[type='file']")).sendKeys("FilePath");
//click to send
driver.findElement(By.cssSelector("span[data-icon='send-light']")).click();
I know it's too late, I just have to add that Whatsapp Web and Whatsapp Desktop accept paste inputs, thus if you can get your picture to the memory (I did it with VB.net took 5 mins to accomplish after a bit of googling) you can just send a paste order and it'll load it in and require and ENTER send key from you.
Part1: Sending messages to unsaved contacts
Sending media to unsaved numbers is quite a difficult task but not impossible. You can surely find XPath by text.
Part2: Yes media can be sent to contacts. I have done that in my project link : https://github.com/shauryauppal/PyWhatsapp. By using PyAutoIt you can send Pictures, PDF, Videos to the selected contacts.
Since uploading part is not the automation of web browser we auto windows using AutoIt and select the path of image/video/file to send to the user.
autoit.control_focus("Open","Edit1")
autoit.control_set_text("Open","Edit1",(PATH_OF_IMAGE_TO_SEND) )
autoit.control_click("Open","Button1")
This is just the crux of the implementation. Do refer my repo in case of more understanding.
PS: Don't forget to star repo or give credits.
Check answer Link for more info, where to download AutoIt from.
Coding Working Fine.
//To send attachments
//click to add
driver.findElement(By.cssSelector("span[data-icon='clip']")).click();
//add file to send by file path
driver.findElement(By.cssSelector("input[type='file']")).sendKeys("FilePath");
//click to send
driver.findElement(By.cssSelector("span[data-icon='send-light']")).click();
I was having the same issue but right after fixing it, I made a python wrapper so that it helps more people having the same issue.
In case you're interested to explore more about the wrapper, here is a link
https://github.com/Kalebu/alright
Here is how to send a message to media files and message to unsaved contacts
>>> from alright import WhatsApp
>>> messenger = WhatsApp()
>>> messenger.find_user('255-74848xxxx')
>>> messenger.send_message("I wish you a Merry X-mass and Happy new year ")
>>> messenger.send_picture('path-to-image',"Text to accompany image")
Sending to Multiple unsaved contacts
>>> numbers = ['2557xxxxxx', '2557xxxxxx', '....']
>>> for number in numbers:
messenger.find_user(number)
messenger.send_message("I wish you a Merry X-mass and Happy new year "

Display on a website if I'm online for Google Hangouts

Currently I can add a "start hangout" button to my website https://developers.google.com/+/hangouts/button
However, it's kind of a dead button, it just starts hangouts and there's no way to actually see if I'm online of offline.
Is there a way for me to put next to that button whether or not my Google+ account "...#dancourse.co.uk" is online currently so someone could call me (if they had my address)?
An Api?
A Javascript library?
Thanks, DanC

How do LINE and Viber display incoming call screens on WP?

I couldn't manage to find that piece of API which allows apps to alert the user with a custom screen, like what can be seen on an incoming (network) phone call over services like LINE or Viber, which even works ubder the lock screen.
Do they need similar registrations as push notifications?
What those apps are using is probably the VoIP APIs that are available. There is a full guide on how to implement such functionality here (including that incoming call screen): http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206983(v=vs.105).aspx
There is also a downloadable sample app available here: http://code.msdn.microsoft.com/wpapps/ChatterBox-VoIP-sample-app-b1e63b8b

Integrate Dropbox app in my app

So, this is the task I want to achieve. In my app, I have a text field which displays a list of all the apps and files that are present in my iOS device. One of them will be dropbox. When I tap on drop box, it should open the dropbox app and ask for user credentials. Once the user enters his credentials, it should save them and it shouldn't ask the next time he logs in again. Now, in that textbox that I mentioned earlier, I should get the list of the files that are there in my dropbox folder.
I'm new to iOS app development stuff so any help in the form of links, documentation will help alot. Please give me a brief idea on how to achieve this task.
Since you said links:
Tutorial Links
http://www.mathiastauber.com/integration-o-dropbox-in-your-ios-application/
http://www.mathiastauber.com/integration-of-dropbox-in-your-ios-application-authentication/
http://programmaticallytakingscreenshot.blogspot.com/2011/04/dropbox-integration-in-iphone.html
Dropbox Links
http://www.dropbox.com/developers/apps
https://www.dropbox.com/developers/start/setup#ios
You should consider using Table Views to show your data instead of Text Fields.
http://www.appcoda.com/ios-programming-tutorial-create-a-simple-table-view-app/
Apple Documentation on Table Views:
http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/tableview_iphone/AboutTableViewsiPhone/AboutTableViewsiPhone.html
Good luck with this!
What you are proposing violates the sandboxing principle of iOS. Apps don't know about anything outside their own documents folder, and do not have permission to read or write outside the area.
Files stored in Dropbox are accessible via the Dropbox API, so you will be able to achieve that part of your design, but most of the other apps on the device will not be visible or accessible to you.