Skip to content

Commit cfd42b6

Browse files
authored
Improved markdown
1 parent b069369 commit cfd42b6

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

README.md

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
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+
69
#### Example: Connect
7-
<pre>
10+
11+
```php
812
include("sinusbot.class.php");
913
$sinusbot = new SinusBot("http://127.0.0.1:8087");
1014
$sinusbot->login("admin", "foobar");
11-
</pre>
12-
<br />
15+
```
16+
1317
#### 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");
1623
$sinusbot->login($username, $password)
1724
$sinusbot->getFiles()
1825
$sinusbot->getRadioStations($search)
@@ -86,4 +93,4 @@ $sinusbot->getBotLog()
8693
$sinusbot->getThumbnail($thumbnail)
8794
$sinusbot->isPlaying($instanceUUID)
8895
$sinusbot->isRunning($instanceUUID)
89-
</pre>
96+
```

0 commit comments

Comments
 (0)