add-photo-to-event

This API is used to upload photo to the specific event

This API is used to upload photo to the specific event

POST https://api.memzo.ai/v1/add-photo-to-event/

Headers

Name
Type
Description

Authorization *

YOUR_SECRET_KEY

x-api-key*

String

YOUR_API_KEY

Request Body

Name
Type
Description

event_id*

String

4296

photo

String

album_name

String

FirstAlbum

{
  "total_count": 1,
  "error": false,
  "message": "Success"
}
Sample Request
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.memzo.ai/v1/add-photo-to-event',
  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' => '4296','photo'=> new CURLFILE('C2fxlOl-_/1640686506553454.jpg'),'album_name' => 'FirstAlbum'),
  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