Skip to content

Commit 67ee26c

Browse files
committed
Fix readme to make the examples viewable.
1 parent 44d9ca8 commit 67ee26c

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

README.md

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -59,42 +59,46 @@ i | **i**nterval: Number of seconds to wait between getUpdates requests
5959
#### via browser
6060

6161
Simply point your browser to the `manager.php` file with the necessary **GET** parameters:
62-
`http://example.com/manager.php?s=<secret>&a=<action>&l=<loop>&i=<interval>`
62+
- `http://example.com/manager.php?s=<secret>&a=<action>&l=<loop>&i=<interval>`
6363

6464
**Webhook**
65+
6566
Set, unset and reset the webhook:
66-
`http://example.com/manager.php?s=super_secret&a=set`
67-
`http://example.com/manager.php?s=super_secret&a=unset`
68-
`http://example.com/manager.php?s=super_secret&a=reset` (unset & set combined)
67+
- `http://example.com/manager.php?s=super_secret&a=set`
68+
- `http://example.com/manager.php?s=super_secret&a=unset`
69+
- `http://example.com/manager.php?s=super_secret&a=reset` (unset & set combined)
6970

7071
**getUpdates**
72+
7173
Handle updates once:
72-
`http://example.com/manager.php?s=super_secret&a=handle` or simply
73-
`http://example.com/manager.php?s=super_secret` (`handle` action is the default)
74+
- `http://example.com/manager.php?s=super_secret&a=handle` or simply
75+
- `http://example.com/manager.php?s=super_secret` (`handle` action is the default)
7476

7577
Handle updates for 30 seconds, fetching every 5 seconds:
76-
`http://example.com/manager.php?s=super_secret&l=30&i=5`
78+
- `http://example.com/manager.php?s=super_secret&l=30&i=5`
7779

7880
#### via CLI
7981

8082
When using CLI, the secret is not necessary (since it could just be read from the file itself).
8183

8284
Call the `manager.php` file directly using `php` and pass the parameters:
83-
`$ php manager.php a=<action> l=<loop> i=<interval>`
85+
- `$ php manager.php a=<action> l=<loop> i=<interval>`
8486

8587
**Webhook**
88+
8689
Set, unset and reset the webhook:
87-
`$ php manager.php a=set`
88-
`$ php manager.php a=unset`
89-
`$ php manager.php a=reset` (unset & set combined)
90+
- `$ php manager.php a=set`
91+
- `$ php manager.php a=unset`
92+
- `$ php manager.php a=reset` (unset & set combined)
9093

9194
**getUpdates**
95+
9296
Handle updates once:
93-
`$ php manager.php a=handle` or simply
94-
`$ php manager.php` (`handle` action is the default)
97+
- `$ php manager.php a=handle` or simply
98+
- `$ php manager.php` (`handle` action is the default)
9599

96100
Handle updates for 30 seconds, fetching every 5 seconds:
97-
`$ php manager.php l=30 i=5`
101+
- `$ php manager.php l=30 i=5`
98102

99103
### Create the manager PHP file
100104

0 commit comments

Comments
 (0)