Skip to content

Instantly share code, notes, and snippets.

@berkorbay
Last active January 5, 2017 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berkorbay/7fc3dfd67f4e84d9b97ed1fab12b1826 to your computer and use it in GitHub Desktop.
Save berkorbay/7fc3dfd67f4e84d9b97ed1fab12b1826 to your computer and use it in GitHub Desktop.
R ve IFTTT ile Notificaton Atmak
#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