work function radio
root document
- work function radio
- get_groups_radio
- get_list_radio
- get_url_radio
- play_radio
get_groups_radio
Query
/get_groups_radio?sid=<sid>
Description
Receiving groups(genres) radio.
Return section
user_title | displays categories in the language specified in the user /get_settings section |
Answer
<?xml
version="1.0" encoding="UTF-8"
standalone="yes"?><response><groups><item><id>1</id><alias>SUNDRY</alias><name>Разное</name><color>#000000</color><user_title>Sundry</user_title></item><item><id>2</id><alias>NEWS</alias><name>Новости</name><color>#000000</color><user_title>News</user_title></item><item><id>3</id><alias>HUMOR</alias><name>Юмор</name><color>#000000</color><user_title>Humor</user_title></item><item><id>4</id><alias>MUSIC</alias><name>Музыка</name><color>#000000</color><user_title>Music</user_title></item></groups><servertime>1374845126</servertime></response>
get_list_radio
Query
/get_list_radio?sid=<sid>
Description
Returns a list of available playback channels radio format that includes genres (groups). (“Volumetric format”)
Return section
icons | Templates paths to the icons of the channels. For each size of icons – your. |
groups | channels Groups (as a rule - genres) |
channels | the Channels in this group |
id | the ID of the group or channel |
Character | alias group ID |
number | the channel Number (default sort) |
name | the name of the group or channel |
color | the Color group |
is_video | content Type. 0 - audio (e.g. radio), 1 video (TV for example) |
icon | Name icons of channel (without the file extension and path) |
user_title | displays categories in the language specified in the user /get_settings section |
Answer
<?xml
version="1.0" encoding="UTF-8"
standalone="yes"?><response><icons><default>http://server.com/img/ico/radio/%ICON%.gif</default><w40h30>http://server.com/img/ico/radio/%ICON%.gif</w40h30></icons><groups><item><id>1</id><name>Разное</name><user_title>Sundry</user_title><color>#000000</color><channels><item><id>105</id><number>101</number><name>Radio
RIGA</name><is_video>0</is_video><icon>_none</icon></item><item><id>106</id><number>102</number><name>LR1</name><is_video>0</is_video><icon>lr1</icon></item><item><id>107</id><number>103</number><name>LR2</name><is_video>0</is_video><icon>lr2</icon></item><item><id>108</id><number>104</number><name>Skonto
Latvia</name><is_video>0</is_video><icon>skonto</icon></item><item><id>102</id><number>105</number><name>Radio
SWH
Latvia</name><is_video>0</is_video><icon>_none</icon></item><item><id>103</id><number>106</number><name>Radio
SWH +
Latvia</name><is_video>0</is_video><icon>_none</icon></item><item><id>104</id><number>107</number><name>Radio
SWH Rock
Latvia</name><is_video>0</is_video><icon>_none</icon></item><item><id>111</id><number>108</number><name>NABA
Latvia</name><is_video>0</is_video><icon>_none</icon></item><item><id>109</id><number>109</number><name>Radio
101</name><is_video>0</is_video><icon>radio101</icon></item><item><id>110</id><number>110</number><name>Capital
FM</name><is_video>0</is_video><icon>capital</icon></item><item><id>101</id><number>111</number><name>MixFM
Latvia</name><is_video>0</is_video><icon>mix</icon></item><item><id>112</id><number>112</number><name>Lietus</name><is_video>0</is_video><icon>lietus</icon></item><item><id>113</id><number>113</number><name>Lafesta</name><is_video>0</is_video><icon>lafesta</icon></item><item><id>114</id><number>114</number><name>ZIP
FM</name><is_video>0</is_video><icon>zipfm</icon></item><item><id>115</id><number>115</number><name>Radiocentras</name><is_video>0</is_video><icon>radiocentras</icon></item><item><id>116</id><number>116</number><name>Laluna</name><is_video>0</is_video><icon>laluna</icon></item><item><id>117</id><number>117</number><name>TOP
radio
Latvia</name><is_video>0</is_video><icon>_none</icon></item><item><id>118</id><number>118</number><name>SUPER
FM
Latvia</name><is_video>0</is_video><icon>_none</icon></item><item><id>77</id><number>202</number><name>Россия</name><is_video>0</is_video><icon>radio-ros</icon></item><item><id>79</id><number>203</number><name>Радио
МАЯК</name><is_video>0</is_video><icon>_none</icon></item><item><id>99</id><number>204</number><name>Радио
Эхо
Москвы</name><is_video>0</is_video><icon>echo</icon></item><item><id>78</id><number>205</number><name>Русское
Радио</name><is_video>0</is_video><icon>rusradio</icon></item><item><id>81</id><number>206</number><name>Наше</name><is_video>0</is_video><icon>nashe</icon></item><item><id>70</id><number>207</number><name>Радио
КУЛЬТУРА</name><is_video>0</is_video><icon>_none</icon></item><item><id>80</id><number>208</number><name>Радио
МАКСИМУМ</name><is_video>0</is_video><icon>_none</icon></item><item><id>74</id><number>211</number><name>Ю
FM</name><is_video>0</is_video><icon>_none</icon></item><item><id>76</id><number>212</number><name>Ретро</name><is_video>0</is_video><icon>retro</icon></item><item><id>69</id><number>214</number><name>D-FM</name><is_video>0</is_video><icon>dfm</icon></item><item><id>50</id><number>217</number><name>BEST
FM</name><is_video>0</is_video><icon>gala</icon></item><item><id>51</id><number>219</number><name>Радио
Шансон
Москва</name><is_video>0</is_video><icon>shanson</icon></item></channels></item><item><id>2</id><name>Новости</name><user_title>News</user_title><color>#000000</color><channels><item><id>75</id><number>201</number><name>ВЕСТИ
FM</name><is_video>0</is_video><icon>_none</icon></item></channels></item><item><id>3</id><name>Юмор</name><user_title>Humor</user_title><color>#000000</color><channels><item><id>83</id><number>215</number><name>ЮМОРFM</name><is_video>0</is_video><icon>_none</icon></item></channels></item><item><id>4</id><name>Музыка</name><user_title>Music</user_title><color>#000000</color><channels><item><id>72</id><number>209</number><name>Дорожное
Радио</name><is_video>0</is_video><icon>dorozhnoe</icon></item><item><id>73</id><number>210</number><name>Европа
Плюс</name><is_video>0</is_video><icon>europaplus</icon></item><item><id>82</id><number>213</number><name>HIT
FM</name><is_video>0</is_video><icon>_none</icon></item></channels></item></groups><servertime>1374845032</servertime></response>
get_url_radio
Query
/get_url_radio?sid=<sid>&cid=<cid>
Require parameters
cid | the channel ID (not number, namely ID) |
Description
Returns the direct link to the radio
Return section
url | Direct link to the broadcasting channel radio |
Answer
<?xml
version="1.0" encoding="UTF-8" standalone="yes"?><response>
<url>http://devnull.com/muzika?325114667=589bd9d94c.lksdklawdnon3j24j204fnff1....</url>
<servertime>1292870500</servertime></response>
play_radio
Query
/play_radio?sid=<sid>
Description
Returns a redirect to the direct link channel radio
All similar functions get_url_radio in addition to the format of the response (a redirect on the direct link instead of returning the reference)
All similar functions get_url_radio in addition to the format of the response (a redirect on the direct link instead of returning the reference)