List Media

Gets a list of your media files. No query parameters are supported.

Request URL

GEThttps://api.catapult.inetwork.com/v1/users/{userId}/media


Properties

Property Description
mediaName The mediaName is the unique name of the media
contentLength Size of the media in Bytes B
content URL to use to GET the specific media file.

Example 1 of 1: List Your Media Files

curl -v -X GET https://api.catapult.inetwork.com/v1/users/{userId}/media -u {token}:{secret}
client.Media.list()
then(function (media) {
  console.log(media);
});
var list = client.Media.List();
Console.WriteLine(list.First().MediaName);
// file1.mp3
list = Media.list(client)
first_media = list.next
first_media_name = first_media[:media-name]

The above command returns JSON structured like this:

[
  {
    "contentLength": 561276,
    "mediaName": "{mediaName1}",
    "content": "api.catapult.inetwork.com/.../media/{mediaName1}"
  },
  {
    "contentLength": 2703360,
    "mediaName": "{mediaName2}",
    "content": "https://api.catapult.inetwork.com/.../media/{mediaName2}"
  },
  {
    "contentLength": 2257901,
    "mediaName": "{mediaName3}",
        "content": "https://api.catapult.inetwork.com/.../media/{mediaName3}"
  }
]

results matching ""

    No results matching ""