Commit 8969dc09 authored by TheOuterLinux's avatar TheOuterLinux

...

parent ca402e19
...@@ -67,6 +67,9 @@ curl -s https://decapi.me/twitch/hightlight?channel=CHANNELNAME ...@@ -67,6 +67,9 @@ curl -s https://decapi.me/twitch/hightlight?channel=CHANNELNAME
Expand shortened URL: Expand shortened URL:
curl -sI <URL> | sed -n 's/Location: *//p'; curl -sI <URL> | sed -n 's/Location: *//p';
Avatar URL:
curl -A "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3" -L https://twitch.tv/CHANNELNAME | grep -Eo '(http|https)://[^"]+/jtv_user_pictures/[^"]+' | tail -n 1
PICARTO PICARTO
------- -------
Get information about a channel by ID: Get information about a channel by ID:
...@@ -75,6 +78,9 @@ curl -X GET --header 'Accept: text/plain' 'https://api.picarto.tv/v1/channel/id/ ...@@ -75,6 +78,9 @@ curl -X GET --header 'Accept: text/plain' 'https://api.picarto.tv/v1/channel/id/
Get information about a channel by name: Get information about a channel by name:
curl -X GET --header 'Accept: application/json' 'https://api.picarto.tv/v1/channel/name/CHANNELNAME' curl -X GET --header 'Accept: application/json' 'https://api.picarto.tv/v1/channel/name/CHANNELNAME'
Avatar URL:
curl -s -X GET --header 'Accept: text/plain' https://api.picarto.tv/v1/channel/name/CHANNELNAME | cut -d '"' -f10
Viewer count: Viewer count:
curl -s -X GET --header 'Accept: application/json' https://api.picarto.tv/v1/channel/name/CHANNELNAME | cut -d '"' -f15 | sed 's/://g; s/,//g' curl -s -X GET --header 'Accept: application/json' https://api.picarto.tv/v1/channel/name/CHANNELNAME | cut -d '"' -f15 | sed 's/://g; s/,//g'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment