Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias twitch {
- var %u = https://api.twitch.tv/kraken/users/exuviax/follows/channels/lirik
- var %v = tw_ $+ $ticks
- JSONOpen -ud %v %u
- if (%JSONError) {
- echo -a ERROR: There was an connection problem between the server. - (Error Details: $+ %JSONError $+ )
- goto end
- return
- }
- var %crdate = $remove($json(%v,created_at),Z)
- var %crdate = $replace(%crdate,T,$chr(32))
- if (!%crdate) {
- echo -a ERROR: There are NOT any informations on the twitch.tv !
- goto end
- return
- }
- echo -a Created at: %crdate
- :end
- JSONClose %v
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement