Skip to content

Instantly share code, notes, and snippets.

@MichaelDimmitt
Last active December 7, 2022 14:34
Show Gist options
  • Save MichaelDimmitt/cfe58b79c5c363be51a8de09bc9b00e2 to your computer and use it in GitHub Desktop.
Save MichaelDimmitt/cfe58b79c5c363be51a8de09bc9b00e2 to your computer and use it in GitHub Desktop.
getting started , meetup graph ql

Meetup api shut down rest

and the graph ql docs are not good

https://www.meetup.com/api/guide/#graphQl-guide

The out of the box example does not work.
However, this version is works:

query='query { self { id name } }'
YOUR_TOKEN='put-a-token'
curl -X POST https://api.meetup.com/gql \
  -H "Authorization: Bearer $YOUR_TOKEN" \
  -H 'Content-Type: application/json' \
  -d @- <<EOF
    {"query": "$query"}
EOF

expected output:
{"data":{"self":{"id":"1234567","name":"Example User"}}}

https://www.meetup.com/api/oauth/list/

@MichaelDimmitt
Copy link
Author

SMH, this does not work client side because gql request is not cors enabled ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment