Meetup API method using post() to create Event and post in a Meetup group

51 views
Skip to first unread message

Susanta Bera

unread,
Jan 30, 2018, 10:39:39 AM1/30/18
to Meetup API
Hello All,
Someone know how to post event in Meetup through another website using API as mentioned in their API doc:

https://www.meetup.com/meetup_api/docs/:urlname/events/#create

Language use: PHP

I am trying with the following scripts:
https://moac.website/meetuptest/test1.php

include 'Meetup-master/meetup.php';
$meetup = new Meetup(array(
    'key' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
));

$response = $meetup->getEvents(array(
    'group_urlname' => 'XXXXX'
));

but its not working and getting error:

[30-Jan-2018 09:31:35 UTC] PHP Fatal error:  Uncaught exception 'Exception' with message 'Missing parameter 'urlname' for path '/:urlname/event'.' in /home/moacstage/public_html/meetuptest/Meetup-master/meetup.php:287
Stack trace:
#0 /home/moacstage/public_html/meetuptest/Meetup-master/meetup.php(224): Meetup->params('/:urlname/event', Array)
#1 /home/moacstage/public_html/meetuptest/Meetup-master/meetup.php(167): Meetup->post('/:urlname/event', Array)
#2 /home/moacstage/public_html/meetuptest/test2.php(36): Meetup->postEvent(Array)
#3 {main}
  thrown in /home/moacstage/public_html/meetuptest/Meetup-master/meetup.php on line 287

Response Code: 200

Somebody know how to fix it?
Is there sample php script to implement it?

Reg.
Susanta

Doug Tangren

unread,
Jan 30, 2018, 10:42:35 AM1/30/18
to meetu...@googlegroups.com
It looks like the request uri is not well formatted. :urlname is a placeholder. You'll want to substitute that with the urlname for your group. 
 

Reg.
Susanta

--
--
You received this message because you are subscribed to the Google
Groups "Meetup API" group.
To unsubscribe from this group, send email to
meetup-api+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/meetup-api?hl=en?hl=en

---
You received this message because you are subscribed to the Google Groups "Meetup API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetup-api+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages