get-event-album-photos

Use this API to retrieve a collection of photos associated with a specific event and its corresponding album.

Use this API to get the collection of all photos from an event and its corresponding album

POST https://api.memzo.ai/v1/get-event-album-photos/

Headers

Name
Type
Description

Authorization *

YOUR_SECRET_KEY

x-api-key*

String

YOUR_API_KEY

Request Body

Name
Type
Description

event_id*

String

A unique identifier for the event (e.g., "2287"). This is a required field.

album_id*

String

A unique identifier for the album (e.g., "9098"). This is a required field.

page_size

Integer

Specifies the number of records to return per request. The maximum value is 200, and the default is 50. If a value greater than 200 is provided, the API will return only 200 records.

index_id

Integer

Used for pagination to retrieve the next set of images. Include the index_id from the previous API response to fetch the subsequent batch.

{
  "error": false,
  "message": "Success",
  "index_id": 1,
  "data": [
    {
      "event_id": "2287",
      "event_name": "testPradInter904",
      "event_title": "test pradeep",
      "event_image_url": "https://live.memzo.ai/adminapp/user_data/event_images/2287al0_IMG_5624.jpg",
      "datetime_created": "2022-08-16 09:52:21",
      "album_name": "newphoto2",
      "album_photos_count": "9",
      "album_cover_url": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al9098_IMG_5625.jpg",
      "event_horizontal_logo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/event_cover_images/testPradInter904_horizontal.jpg",
      "event_vertical_logo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/event_cover_images/testPradInter904_vertical.jpg",
      "event_link": "https://photos.9letters.com/testPradInter904/2287",
      "photos_count": "100"
    }
  ],
  "collection_count": 5,
  "collection_object": [
    {
      "image_url": "testPradInter904/al9098_a111.jpg",
      "thumbnail_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al9098_a111.jpg",
      "large_photo": "https://snapwrap.s3.ap-south-1.amazonaws.com/testPradInter904/al9098_a111.jpg",
      "highres_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/highres/testPradInter904/al9098_a111.jpg"
    },
    {
      "image_url": "testPradInter904/al9098_IMG_557w800.jpg",
      "thumbnail_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al9098_IMG_557w800.jpg",
      "large_photo": "https://snapwrap.s3.ap-south-1.amazonaws.com/testPradInter904/al9098_IMG_557w800.jpg",
      "highres_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/highres/testPradInter904/al9098_IMG_557w800.jpg"
    },
    {
      "image_url": "testPradInter904/al9098_IMG_5639.jpg",
      "thumbnail_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al9098_IMG_5639.jpg",
      "large_photo": "https://snapwrap.s3.ap-south-1.amazonaws.com/testPradInter904/al9098_IMG_5639.jpg",
      "highres_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/highres/testPradInter904/al9098_IMG_5639.jpg"
    },
    {
      "image_url": "testPradInter904/al9098_20210123_164958.jpg",
      "thumbnail_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al9098_20210123_164958.jpg",
      "large_photo": "https://snapwrap.s3.ap-south-1.amazonaws.com/testPradInter904/al9098_20210123_164958.jpg",
      "highres_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/highres/testPradInter904/al9098_20210123_164958.jpg"
    },
    {
      "image_url": "testPradInter904/al9098_20210123_185216.jpg",
      "thumbnail_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al9098_20210123_185216.jpg",
      "large_photo": "https://snapwrap.s3.ap-south-1.amazonaws.com/testPradInter904/al9098_20210123_185216.jpg",
      "highres_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/highres/testPradInter904/al9098_20210123_185216.jpg"
    }
  ]
}
Sample Request
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.memzo.ai/v1/get-event-album-photos',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS => array('event_id' => '2287','album_id' => '9098','index_id' => '0','page_size' => '5'),
  CURLOPT_HTTPHEADER => array(
    'Authorization: YOUR_SECRET_KEY',
    'x-api-key: YOUR_API_KEY'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

For more detailed information, please refer to the full Postman documentation here.

Last updated