create-event

Use this API to create new event.

Use this API to create new event.

POST https://api.memzo.ai/v1/create-event

Headers

Name
Type
Description

Authorization *

YOUR_SECRET_KEY

x-api-key*

String

YOUR_API_KEY

Request Body

Name
Type
Description

event_name *

String

WhiteLabel Event

event_horizontal_logo

String

optional

event_vertical_logo

String

optional

{
  "data": [
    {
      "event_id": "4296",
      "event_name": "WhiteLabel-Test-Event5449",
      "event_title": "WhiteLabel Test Event",
      "event_image_url": "https://snapwrap.io/default.png",
      "datetime_created": "2023-03-17 10:23:34",
      "event_link": "https://memzo.co/m/WhiteLabel-Test-Event5449/4296"
    }
  ],
  "error": false,
  "message": "Event has been created."
}
Sample Request
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.memzo.ai/v1/create-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_name' => 'WhiteLabel Test Event','event_horizontal_logo'=> new CURLFILE('EDBT6P_pl/wm_3772_230123032537.jpg'),'event_vertical_logo'=> new CURLFILE('ZzGT-Tpe7/penne-pasta-tomato-sauce-with-chicken-tomatoes-wooden-table_2829-19744.jpg')),
  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