What does name_error really mean?

8 views
Skip to first unread message

Allan Wick

unread,
Aug 28, 2017, 11:11:15 AM8/28/17
to Meetup API
I am posting to /:eventURL/events with a valid bearer token and following payload.

{
  "name": "EventEzze Demo",
  "description": "This is my first event from EventEzze",
  "time": 1504352700000,
  "duration": 8100000,
  "publishStatus": "draft"
}

Curl with censored data: 
curl -X POST \
  -H 'authorization: Bearer XXXMYBEARERTOKENXXX' \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -d '{
  "name": "EventEzze Demo",
  "description": "This is my first event from EventEzze",
  "time": 1504352700000,
  "duration": 8100000,
  "publishStatus": "draft"
}

I get the error:
        {
            "code": "name_error",
            "message": "A title is required to post your Meetup",
            "field": "name"
        }

There is no "Title" field that I can find in the post documentation.

Doug Tangren

unread,
Aug 28, 2017, 11:13:18 AM8/28/17
to meetu...@googlegroups.com
The issue here is that we don't currently support application/json bodies for HTTP POSTS. Instead we expect form post data

curl -X POST -d "name=EventEzze Demo&description=This is my first event from EventEzze" ... 

--
--
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.

Allan Wick

unread,
Aug 30, 2017, 10:40:58 AM8/30/17
to Meetup API
Thanks!

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+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages