@@ -141,6 +141,48 @@ $response = $connector->send(new GetInstagramMedia(withChildren: false));
141141$media = $response->dto(); // returns a collection of \CodebarAg\LaravelInstagram\DTO\InstagramImage
142142```
143143
144+ ## DTO Showcase
145+
146+ ### InstagramUser
147+
148+ ``` php
149+ CodebarAg\LaravelInstagram\Data\InstagramUser {
150+ id: '987654321' // string
151+ user_id: '123456789' // string
152+ username: 'john_doe' // string
153+ name: 'John Doe' // string
154+ account_type: 'BUSINESS' // string
155+ profile_picture_url: https://instagram-link.com // string
156+ followers_count: 200 // int
157+ follows_count: 100 // int
158+ media_count: 1 // int
159+ }
160+ ```
161+
162+ ### InstagramImage
163+
164+ ``` php
165+ CodebarAg\LaravelInstagram\Data\InstagramImage {
166+ id: '123456789' // string
167+ media_type: 'IMAGE'|'CAROUSEL_ALBUM' // string
168+ media_url: 'https://instagram-link.com' // string
169+ permalink: 'https://instagram-link.com' // string
170+ timestamp: '2022-01-01T00:00:00+00:00' // CarbonImmutable
171+ caption: 'This is a caption' // null|string
172+ children: [ // null|Collection
173+ CodebarAg\LaravelInstagram\Data\InstagramImage {
174+ id: '123456798' // string
175+ media_type: 'IMAGE' // string
176+ media_url: 'https://instagram-link.com' // string
177+ permalink: 'https://instagram-link.com' // string
178+ timestamp: '2022-01-01T00:00:00+00:00' // CarbonImmutable
179+ caption: 'This is a caption' // null|string
180+ children: null // null
181+ }
182+ ]
183+ }
184+ ```
185+
144186## Testing
145187
146188``` bash
0 commit comments