|
1 | | -### SinusBot API PHP-Class |
2 | | -<blockquote><h4><em>PHP-Class for the SinusBot (http://sinusbot.com)</em></h4></blockquote> |
3 | | -You can retrieve information with the PHP-Class. It is now possible to view the current status and the current title of the track or stream on your own homepage via PHP.<br><br> |
4 | | -The PHP-Class is compatible with the hosting version, you can use <a href="http://ts3index.com/hosting/product/teamspeak-3-musicbot.html">TS3index.com MusicBots</a> |
5 | | -<br /><br /> |
| 1 | +# SinusBot API PHP-Class |
| 2 | + |
| 3 | +> PHP-Class for the SinusBot (http://sinusbot.com) |
| 4 | +
|
| 5 | +You can retrieve information with the PHP-Class. It is now possible to view the current status and the current title of the track or stream on your own homepage via PHP. |
| 6 | + |
| 7 | +The PHP-Class is compatible with the hosting version, you can use e.g. [TS3index.com](https://ts3index.com/hosting/product/teamspeak-3-musicbot.html) musicbots |
| 8 | + |
6 | 9 | #### Example: Connect |
7 | | -<pre> |
| 10 | + |
| 11 | +```php |
8 | 12 | include("sinusbot.class.php"); |
9 | 13 | $sinusbot = new SinusBot("http://127.0.0.1:8087"); |
10 | 14 | $sinusbot->login("admin", "foobar"); |
11 | | -</pre> |
12 | | -<br /> |
| 15 | +``` |
| 16 | + |
13 | 17 | #### Functions: |
14 | | -<blockquote><em>The parameter $instanceUUID is optional for every function having this parameter. However, if omitting it, you must have selected the instance via <strong>$sinusbot->selectInstance("INSTANCEUUID")</strong> beforehand.</em></blockquote> |
15 | | -<pre> |
| 18 | + |
| 19 | +The parameter $instanceUUID is optional for every function having this parameter. However, if omitting it, you must have selected the instance via `$sinusbot->selectInstance("INSTANCEUUID")` beforehand. |
| 20 | + |
| 21 | +```php |
| 22 | +$sinusbot = new SinusBot("http://127.0.0.1:8087"); |
16 | 23 | $sinusbot->login($username, $password) |
17 | 24 | $sinusbot->getFiles() |
18 | 25 | $sinusbot->getRadioStations($search) |
@@ -86,4 +93,4 @@ $sinusbot->getBotLog() |
86 | 93 | $sinusbot->getThumbnail($thumbnail) |
87 | 94 | $sinusbot->isPlaying($instanceUUID) |
88 | 95 | $sinusbot->isRunning($instanceUUID) |
89 | | -</pre> |
| 96 | +``` |
0 commit comments