/api/media/image

Lists all images available to the user.

Resource Information

Resource URL

https://service.belladati.com/api/media/image

HTTP Method

GET

Sample Request / Response

Using curl:

curl GET-H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\""  https://service.belladati.com/api/media/image

The JSON format response:

{
  "images": [
    {
      "id": "1",
      "name": "29",
      "filename": "29.png",
      "createdBy": "u1",
      "createdWhen": "Wed, 10 Jan 2018 09:56:06 GMT"
    },
    {
      "id": "2",
      "name": "30",
      "filename": "30.png",
      "createdBy": "u1",
      "createdWhen": "Wed, 10 Jan 2018 09:56:06 GMT"
    },
    {
      "id": "3",
      "name": "27",
      "filename": "27.png",
      "createdBy": "u1",
      "createdWhen": "Wed, 10 Jan 2018 09:56:06 GMT"
    },
    {
      "id": "4",
      "name": "9",
      "filename": "9.png",
      "createdBy": "u1",
      "createdWhen": "Wed, 10 Jan 2018 09:56:06 GMT"
    }
]}

CreatedWhen always contains GMT values.


  • No labels