File tree Expand file tree Collapse file tree 1 file changed +38
-2
lines changed
Expand file tree Collapse file tree 1 file changed +38
-2
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ Requirements
3939Usage
4040=====
4141
42+ Execute commands :
4243
4344``` php
4445
45-
4646$roku = new \Roku\Roku("192.168.72.10", 8060, 0.2);
4747
4848$roku->up();
@@ -58,6 +58,42 @@ $roku->down();
5858$roku->select();
5959
6060```
61+
62+ List the applicatioin installed on the device :
63+
64+ ``` php
65+
66+
67+ $roku = new \Roku\Roku("192.168.72.10", 8060, 0.2);
68+
69+ $applications = $roku->apps();
70+
71+ foreach ($applications as $application) {
72+ echo $application->getId();
73+ echo $application->getVersion();
74+ echo $application->getName();
75+ echo "\n";
76+ }
77+
78+ ```
79+
80+ Get device information :
81+
82+ ``` php
83+
84+
85+ $roku = new \Roku\Roku("192.168.72.10", 8060, 0.2);
86+
87+ $device = $roku->device();
88+
89+ echo $device->getSerialNumber();
90+ echo $device->getModelName();
91+ echo $device->getModelDescription();
92+ // etc..
93+
94+
95+ ```
96+
6197Usage Commandline
6298=================
6399
@@ -87,7 +123,7 @@ Usage: roku [OPTION] ..
87123
88124```
89125
90- Example usage of command and interactivemodes :
126+ Example usage of command and interactive modes :
91127
92128``` bash
93129
You can’t perform that action at this time.
0 commit comments