PDA

View Full Version : API post an event


BulliM
11-10-2020, 10:28 AM
How to post an event by vBulletin API? What do I have to define, if I want to post automatically as event? My code so far:

$input = array(
'hvinput' => '',
'title' => 'Title of new event post',
'rawtext' => 'HTML content of new event post',
'parentid' => 10,
'channelid' => 10,
'nl2br' => false,
'htmlstate' => 'on',
'disable_bbcode' => true,
'tags' => 'post,newpost'
);

$options = array(
'skipDupCheck' => true
);

$nodeId = $api->callApi('content_text', 'add', array($input, $options));

delicjous
11-10-2020, 01:07 PM
You could check on frontend controller "createcontent" functions "actionTextNodeInternal" and "getEventInput". Also at "API/Content/event.php"

Your callApi should be "content_event".

BulliM
11-10-2020, 01:17 PM
You could check on frontend controller "createcontent" functions "actionTextNodeInternal" and "getEventInput". Also at "API/Content/event.php"

Your callApi should be "content_event".

Okay, will see. THX, delicjous. :)