From 0c3ab039b726070dfa111169faf32c1e7259e849 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Tue, 18 Jan 2022 22:49:53 +0300 Subject: [PATCH] Update template.md --- .readme/template.md | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/.readme/template.md b/.readme/template.md index abe38558..29d56772 100644 --- a/.readme/template.md +++ b/.readme/template.md @@ -25,20 +25,14 @@ To load a program guide, all you need to do is copy the link to one or more of t https://iptv-org.github.io/epg/index.html -## For Developers +## API -You can also get a list of all available channels and their codes in JSON format by sending a GET request to: +### List of channels ``` https://iptv-org.github.io/epg/api/channels.json ``` -If successful, you should get the following response: - -
-Expand -
- ``` [ ... @@ -58,7 +52,33 @@ If successful, you should get the following response: ] ``` -
+### List of programs + +``` +https://iptv-org.github.io/epg/api/programs.json +``` + +``` +[ + ... + { + "channel": "CNNUSA.us", + "site": "example.com", + "lang": "en", + "title": "Erin Burnett OutFront", + "desc": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod + tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.", + "categories": [ + "Series", + "News" + ], + "image": "https://example.com/banner.jpg", + "start": 1641772800, + "stop": 1641776400 + }, + ... +] +``` ## Contribution