Basic UsageΒΆ
To start using the wrapper, include the Bodis Facade.
1use Bodis;
2
3/* get a list of domains */
4$domains = Bodis::listDomains();
5
6/* get a list of folders */
7$folders = Bodis::listFolders();
You can also create an instance if you want.
1use Bodis;
2
3/* use default token from config */
4$bodis = new Bodis();
5
6/* get a list of domains */
7$domains = $bodis::listDomains();
8
9/* get a list of folders */
10$folders = $bodis::listFolders();
If you have multiple keys, you can change them by the above method and including your api key
1use Bodis;
2
3/* will use default token in your config */
4$bodis = new Bodis();
5
6/* will use the token you specify */
7$bodis = new Bodis($token);