Twitcastingから情報を取得(php)
↓のphp版
http://checker-site.hatenablog.com/entry/2015/11/20/162002
<?php $url_base = "http://api.twitcasting.tv/api/livestatus?user="; $twitcasting_id = "test"; $url = $url_base . $twitcasting_id . "&type=json";//デフォルトはjsonpなのでjsonに変換 $json = file_get_contents($url); $contents = json_decode($json, true); //print_r($json); var_dump($contents); $isLive = $contents['islive']; $protected = $contents['protected']; $movieid = $contents['movieid']; $comments = $contents['comments']; $viewers = $contents['viewers']; $total = $contents['total']; $duration = $contents['duration']; $subtitle = $contents['subtitle']; $typing = $contents['typing']; $hashtag = $contents['hashtag']; $title = $contents['title'];