設定
config > get
INTER-STREAMの一般的な構成と設定をリクエストします。
リクエストの構築
リクエストURLとGET変数
リクエスト固有のGET変数
| 変数 | 値 | 説明 |
|---|---|---|
| go | config | APIセクション |
| do | get | APIアクション |
リクエストURLは以下のようになります。必須情報(key, timestamp, salt, signature)を追加することを忘れないでください。
https://....../api.php?go=config&do=get&{required information}
POST変数
このリクエストにはPOST変数は必要ありません。
応答例
リクエストが成功した場合のレスポンス
{
"data": {
"banner_mobile": "",
"banner_player": "",
"banner_sidebar": "",
"banner_top": "",
"base_url": "http:\/\/......",
"channel_related_videos_fetch_from": "current_playlist",
"channel_related_videos_sorting": "playlist",
"clip_related_videos_fetch_from": "categories",
"clip_related_videos_sorting": "random",
"date_format": "d\/m\/Y",
"development_mode": "0",
"external_page_link_menu_inclusion": "all",
"external_page_link_target": "_blank",
"external_page_link_title": "My site",
"external_page_link_url": "http:\/\/www.mysitelink.com\/",
"img_bkg": "",
"img_bkg_color": "#C8E3F7",
"img_bkg_use": "0",
"img_logo": "",
"img_player_logo": "http:\/\/......\/uploads\/images\/logo_player_1426842561.png",
"img_player_logo_show": "1",
"img_player_logo_url": "",
"img_social": "",
"lang_backend": "en",
"lang_frontend": "en",
"number_format_dec": "2",
"number_format_dec_point": ".",
"number_format_tho_sep": ",",
"site_description": "WebTV description",
"site_tags": "tag1, tag2, tag3",
"site_title": "WebTV Title",
"social_page_facebook": "http:\/\/www.facebook.com\/......\/",
"social_page_flickr": "",
"social_page_googleplus": "http://google.com/......",
"social_page_linkedin": "",
"social_page_tuenti": "",
"social_page_twitter": "http:\/\/twitter.com\/......\/",
"social_page_vkontakte": "",
"time_format": "h:i:s A",
"time_zone": "Europe\/Madrid"
}
}
リクエストにハッシュが指定されていない場合など、リクエストが失敗した場合のレスポンス
{
"error" : "REQUEST_ERROR",
"error_long" : "Missing signature"
}
エラー内容に関しては一般的なエラーメッセージを確認してください。
PHPサンプルコード
GETおよびPOSTデータを準備します。
// GET変数 $GET_VARS = array( "go" => "config", "do" => "get" ); // POST変数 $POST_VARS = array();