0

I am trying to use Meetup's api to automatically post events on the network, and I am following their guide but I still getting b'Must provide query string.' as a return.

Does anyone know what I may be doing wrong?

import requests

authent_url = "https://api.meetup.com/gql"


params = {
"Authorization" : "Bearer [API KEY HERE]",
}

creating_event = {"mutation": '{createEvent(input: {"groupUrlname": "MY NAME", "title": "Arraial do Cabo", "description": "Trip para arraial", "startDateTime": "2022-09-10 15:00:00.000"}) {event {id} errors {message code field}}}'}

query_by_title = requests.post(authent_url, headers=params, json=creating_event)

query_by_title.content

I don't know what else to do, any help?

EDIT: Remade the query here and got it https://splunktool.com/post-graphql-mutation-with-python-requests

0 Answers0