All checks were successful
Build / build_and_release (push) Successful in 1m30s
PVR movies monitor
This API is a wrapper around the PVR Cinemas API. It can be used to get the list of all the shows at a PVR location.
Deployment
-
Build it using
cargo b --release. -
Deploy it on a server and run it using your favourite init system. I use systemd.
[Unit]
Description=PVR Movies Monitor
After=network.target
[Service]
User=pvr
Group=pvr
Environment=RUST_LOG=info
Environment=HOST=0.0.0.0
Environment=PORT=3000
Environment=API_KEY=<configure_an_api_key_here>
WorkingDirectory=/home/pvr/pvr-movies-monitor
ExecStart=/home/pvr/pvr-movies-monitor
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target
How to use
You can use this by calling it like this
curl -X POST http://localhost:3000/shows/asd -d '{"city":"<cityName>","cid":"<theatreId>"}' -H 'Content-Type: application/json'
You can find the theatreId by calling
curl 'https://api3.pvrcinemas.com/api/v1/booking/content/cinemas' \
--compressed \
-X POST \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:145.0) Gecko/20100101 Firefox/145.0' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Accept-Language: en-US,en;q=0.5' \
-H 'Accept-Encoding: gzip, deflate, br, zstd' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer' \
-H 'chain: PVR' \
-H 'city: Bengaluru' \
-H 'appVersion: 1.0' \
-H 'platform: WEBSITE' \
-H 'country: INDIA' \
-H 'Origin: https://www.pvrcinemas.com' \
-H 'Sec-GPC: 1' \
-H 'Connection: keep-alive' \
-H 'Sec-Fetch-Dest: empty' \
-H 'Sec-Fetch-Mode: cors' \
-H 'Sec-Fetch-Site: same-site' \
--data-raw '{"city":"Bengaluru","lat":"","lng":"","text":""}' | jq '.output.c[] | .theatreId + " " + .name' -r
A list of PVR theatres in Bengaluru is attached.
14 INOX Lido Mall, Ulsoor Bengaluru
24 INOX Nexus Whitefield Bengaluru
110 INOX Garuda Mall, Magrath Road Bengaluru
127 INOX Shree Garuda Swagath Mall, Jayanagar Bengaluru
148 INOX Mantri Square, Malleshwaram Bengaluru
150 INOX Central, Mantri Junction, JP Nagar Bengaluru
208 INOX Brookefield Mall, Brookefield Bengaluru
231 INOX Galleria Mall,Yelahanka Bengaluru
261 INOX Garuda Yelahanka Bengaluru
282 INOX SBR Horizon, Seegehalli Bengaluru
309 INOX Megaplex Mall of Asia Bangalore
385 PVR MSR Elements Mall, Tanisandhra Main Road
390 PVR, VR Bengaluru, Whitefield Road
391 PVR Vaishnavi Sapphire Mall, Yashwant pur
507 PVR Nexus (Formerly Forum), Koramangala
510 PVR, Central Spirit Mall, Bellandur
511 PVR Orion Mall, Dr Rajkumar Road
512 PVR Phoenix Marketcity Mall, Whitefield Road
519 PVR GT World Mall Magadi Road
520 PVR Vega City, Bannerghatta Road
522 PVR Aura Park Square Whitefield Bengaluru
528 PVR Orion UPTOWN,OLD Madras Road, Bengaluru
529 PVR Directors cut Forum REX WALK Bengaluru
531 PVR Bhartiya Mall Of Bengaluru
533 PVR Superplex Forum Mall Kanakapura Road
534 PVR Global Mall, Mysore Road, Bengaluru
583 INOX M5 Ecity Bengaluru
Description