> For the complete documentation index, see [llms.txt](https://docs.mburger.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mburger.cloud/ios-docs/media.md).

# Media

You can retrieve a media stored on MBurger with its id:

```swift
MBClient.getMedia(withId: MEDIA_ID,
                  success: { media in
                        
                  },
                  failure: { error in
                            
                  })
```

To retrieve all the media that are saved in MBurger you can use this function:

```swift
MBClient.getAllMedia(success: { media in
            
},
failure: { error in
            
})
```
