Last active
January 5, 2017 13:07
-
-
Save berkorbay/7fc3dfd67f4e84d9b97ed1fab12b1826 to your computer and use it in GitHub Desktop.
R ve IFTTT ile Notificaton Atmak
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#R ile cep telefonuna notification gönderme kodu | |
#Detaylar için adresindeki yazıyı okuyun. | |
#httr paketi gerekli. Yuklemediyseniz yükleyin. | |
#install.packages("httr") | |
#Event adini girin. | |
event_name <- "R_ile_notification" | |
#Key değerini girin (kendinizinkiyle değiştirin) | |
the_key <- "aslindakeyolananlamsizkarakterlertoplulugu" | |
#Bir url haline getiriyoruz | |
the_url <- paste0("https://maker.ifttt.com/trigger/",event_name,"/with/key/",the_key) | |
#Notification ile iletmek istediğimiz şeyi iletiyoruz | |
the_message <- "Gel, kodun soğuyor." | |
#Veee REST marifetiyle gönderiyoruz. | |
httr::POST(the_url,body=list(value1=the_message)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment