Skip to content

Commit 3a551cc

Browse files
committed
README extended
1 parent 1e84d15 commit 3a551cc

File tree

1 file changed

+38
-2
lines changed

1 file changed

+38
-2
lines changed

README.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ Requirements
3939
Usage
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+
6197
Usage 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

0 commit comments

Comments
 (0)