Event add

Documentation for the POST method endpoints used to create a new event. Includes setting event details, specifying creation context (User Wall vs. Group Profile).

Endpoint:

Method:

  • POST / GET

Parameter:

Parameter name Required Type Explain
api_key_token Yes string Your API key
title Yes string Event title
info Yes string Event Description
location Yes string Location for the event
event_cost Yes integer Event cost
date Yes string Start date m/d/Y eg. 09/01/2021
start_time Yes string Start time in AM, PM format eg 06:20 AM
allowed_comments Yes string yes or no
picture Yes image file Single image for event
container_type Yes string user or group
container_guid Yes integer Guid for container where events belongs (user guid or group guid)
uguid Yes integer Loggedin user Guid
**Example Response **
{
    "merchant": "Premium Social Network",
    "url": "http:\/\/local.openteknik.com\/",
    "time_token": 1632144596,
    "payload": {
        "event": {
            "data": {},
            "guid": 113,
            "time_created": 1632144594,
            "owner_guid": 1,
            "description": "Info goes here",
            "title": "Title",
            "type": "user",
            "subtype": "event",
            "container_type": "user",
            "event_cost": "10",
            "country": "",
            "location": "abc",
            "date": "09\/01\/2021",
            "start_time": "06:20 AM",
            "end_time": "06:20 PM",
            "allowed_comments_likes": "1",
            "is_finished": "",
            "container_guid": "1",
            "event:wall": "1",
            "file:event:photo": "event\/photo\/10f2a635ab85091c56179f0c932530cc.jpg"
        }
    },
    "code": "100",
    "message": "Request successfully executed"
}

Return payload parameter description

Parameter name Explain
event Newly created event

Services View All