Eventbrite API create private event

116 views
Skip to first unread message

Borza Adrian

unread,
Apr 20, 2015, 8:15:05 AM4/20/15
to eventbr...@googlegroups.com
I'm using Eventbrite API to create events from my application, what I need are private events and I create them with this code:

 $event_params = array(
                           
'title'         => $event->name,
                           
'description'   => $event->description,
                           
'start_date'    => $event->start_at,
                           
'end_date'      => $event->end_at,
                           
'timezone'      => 'Europe/Paris',
                           
'privacy'       => '0',
                           
'venue_id'      => $venue_id,
                           
'organizer_id'  => $organizer_id,
                           
'capacity'      => $event->capacity,
                           
'currency'      => 'EUR',
                           
'locale'        => 'fr_FR',
                           
'status'        => $event->status,
                           
'custom_header' => '<img src="'.asset($event->placeholder_img).'" width="100%"/>'

   
);

    $resp
= $this->eb_client->event_new($event_params);
Introduceţi aici codul...

so the event is created in Eventbrite but it can be shared via social media: http://prntscr.com/6w0b20and I don't want this thing, I was wondering if this social sharing could be avoid via Eventbrite API.

Thank you, Adrian


Dana Kock

unread,
Apr 20, 2015, 8:29:12 AM4/20/15
to eventbr...@googlegroups.com
Hi Adrian,

By setting the 'event.shareable' parameter to 'No' or 0 you will be able to shut off this feature via the API.

I hope this helps!

Borza Adrian

unread,
Apr 20, 2015, 8:37:51 AM4/20/15
to eventbr...@googlegroups.com
Hi Dana,

Thank you for answering my question but if I look on the event_create parameters: http://developer.eventbrite.com/doc/events/event_new/ I can't find that option "shareable", can you tell me where I should look in documentation to see that possibility?

Thank you,
Adrian

Dana Kock

unread,
Apr 20, 2015, 8:42:43 AM4/20/15
to eventbr...@googlegroups.com
My apologies Adrian! I didn't notice that you were on V1 and not V3. I would recommend upgrading to V3 as soon as possible as V1 doesn't have the ability to set this parameter and full deprecation goes into effect on April 30th. You can see the request parameters for Event Details (event_new's parity endpoint) here http://www.eventbrite.com/developer/v3/endpoints/events/#ebapi-post-events
Reply all
Reply to author
Forward
0 new messages