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
// Check movie status | |
// Check movie status | |
function checkTickets() { | |
var request = require("request"); | |
var options = { | |
method: 'GET', | |
url: 'https://www.spicinemas.in/chennai/show-times/data/07-05-2019', | |
qs: { |
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
// Telegram Credentials | |
var telegramapi = new telegram({ | |
token: 'XXXXXXXXXX', | |
updates: { | |
enabled: true | |
} | |
}); | |
// Send message with Telegram | |
/** |
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
//Twilio Credentials | |
const accountSid = 'xxxxxxxxxxxxxxx'; // Your Account SID from www.twilio.com/console | |
const authToken = 'xxxxxxxxxxxxxxxxxxx'; // Your Auth Token from www.twilio.com/console | |
// Make call with twilio | |
function makeCall() { | |
if (callFlag == true) { | |
phoneNumbers.forEach(phoneNumber => { | |
client.calls |
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
const telegram = require('telegram-bot-api'); // Pushing notification to telegram channel. | |
const request = require('request'); // Making api call to spicinemas. | |
const twilio = require('twilio'); // Making the phone call for waking me up. | |
const moment = require('moment'); // Converting date time from the api. | |
//Twilio Credentials | |
// Telegram Credentials |
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
{ | |
"screenSchedules": [{ | |
"movieName": "A DOG'S WAY HOME ENGLISH", | |
"movieID": "2356", | |
"language": "english", | |
"certification": "U", | |
"sluggedCertificate": "u", | |
"sluggedMovieName": "a-dogs-way-home-english", | |
"screenName": "KITES", | |
"cinemaName": "Escape", |