get-event-all-photos

Use this API to get collection of all photos from an event

Use this API to get the collection of all photos from an event

POST https://api.memzo.ai/v1/get-event-all-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., "27"). 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.

```json
{
    "error": false,
    "message": "Success",
    "index_id": 1,
    "data": [
        {
            "event_id": "27",
            "event_name": "RishikeshTrip",
            "event_title": "Rishikesh Trip 2020",
            "event_image_url": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/RishikeshTrip/IMG_5907.jpg",
            "datetime_created": "2020-11-26 21:23:09",
            "event_horizontal_logo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/event_cover_images/RishikeshTrip_horizontal.jpg",
            "event_vertical_logo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/event_cover_images/RishikeshTrip_vertical.jpg",
            "event_link": "https://photos.9letters.com/RishikeshTrip/27",
            "photos_count": "359"
        }
    ],
    "collection_count": 3,
    "collection_object": [
        {
            "image_url": "RishikeshTrip/02.jpg",
            "thumbnail_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/RishikeshTrip/02.jpg",
            "large_photo": "https://snapwrap.s3.ap-south-1.amazonaws.com/RishikeshTrip/02.jpg",
            "highres_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/highres/RishikeshTrip/02.jpg"
        },
        {
            "image_url": "RishikeshTrip/IMG_5380.jpg",
            "thumbnail_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/RishikeshTrip/IMG_5380.jpg",
            "large_photo": "https://snapwrap.s3.ap-south-1.amazonaws.com/RishikeshTrip/IMG_5380.jpg",
            "highres_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/highres/RishikeshTrip/IMG_5380.jpg"
        },
        {
            "image_url": "RishikeshTrip/IMG_5368.jpg",
            "thumbnail_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/RishikeshTrip/IMG_5368.jpg",
            "large_photo": "https://snapwrap.s3.ap-south-1.amazonaws.com/RishikeshTrip/IMG_5368.jpg",
            "highres_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/highres/RishikeshTrip/IMG_5368.jpg"
        }
    ]
}
```
Sample Request
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.memzo.ai/v1/get-event-all-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' => '27','index_id' => '0','page_size' => '3'),
  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