Skip to content

Commit 7e6bc70

Browse files
author
Vítězslav Dvořák
committed
Resources described in Readme
1 parent bfa2dcd commit 7e6bc70

File tree

1 file changed

+33
-9
lines changed

1 file changed

+33
-9
lines changed

README.md

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,41 @@ https://cms.realpad.eu/ws/v10/list-excel-customers
3030
#### Endpoints with XML payload
3131

3232
**list-resources**
33-
The root element is `<resources>`, sub-elements look like this:
34-
35-
```xml
36-
<resource
37-
uid="bb938c51-891a-48d7-ba86-bea210a55c79"
38-
content-type="image/jpeg"
39-
file-name="some file.jpg"
40-
size="224292"
41-
crc="3826804066"/>
33+
34+
```php
35+
$client = new \SpojeNet\Realpad\ApiClient();
36+
37+
$resources = $client->listResources();
4238
```
4339

40+
Example of response:
41+
42+
<pre>
43+
Array
44+
(
45+
[b19ddfdd-70f1-44cc-8457-190977152325] => Array
46+
(
47+
[uid] => b19ddfdd-70f1-44cc-8457-190121223233
48+
[content-type] => application/pdf
49+
[file-name] => SomeFile.pdf
50+
[size] => 1679680
51+
[checksum] => a78bbad8279871223313232b40d1d32e92060be06ea16bf4eeece8c503b6369b
52+
[position] => 0
53+
)
54+
55+
[5e09db8c-b97e-45a3-8872-abe623232d56] => Array
56+
(
57+
[uid] => 5e09db8c-b97e-45a3-8872-abe60a232123
58+
[content-type] => application/xml
59+
[file-name] => Bankovni_doklady.xml
60+
[size] => 566580
61+
[checksum] => 333553a21c200020a20eb3213232132132132114903eb9aa8e4a1ca7030373e8
62+
[position] => 1
63+
)
64+
...
65+
</pre>
66+
67+
4468
● uid is the unique identifier of this resource, by which it can be retrieved using
4569
get-projects.
4670

0 commit comments

Comments
 (0)