Skip to content

pferate/meetup-api

Repository files navigation

API Client for Meetup

Latest Version Build Status Documentation Status Python Versions License

A Python API client for Meetup.

The official Meetup REST API documentation has a complete list of available API methods and their descriptions. A listing of implemented API methods is documented at API Client Details.

Quick Start

For more information, take a look at the Getting Started section of the documentation.

Installation

Assuming you have Python already, install the package using pip:

$ pip install meetup-api

Initialize Client and Execute API Call

>>> import meetup.api
>>> client = meetup.api.Client('my_special_token_value')
>>>
>>> type(client)
<class 'meetup.api.Client'>
>>>
>>> group_info = client.GetGroup({'urlname': 'Meetup-API-Testing'})
>>>
>>> type(group_info)
<class 'meetup.api.MeetupObject'>
>>>
>>> group_info.__dict__.keys()
dict_keys(['who', 'join_mode', 'link', 'created', 'country', 'name', 'id', 'visibility',
           'state', 'urlname', 'city', 'lat', 'timezone', 'members', 'lon', 'description',
           'organizer', 'category', 'next_event', 'group_photo'])
>>>
>>> group_info.id
1556336
>>>
>>> group_info.name
'Meetup API Testing Sandbox'
>>>
>>> group_info.link
'https://www.meetup.com/Meetup-API-Testing/'

For a full listing of implemented API methods, take a look at the API Client Details.

License

The MIT License (MIT)

Copyright (c) 2016 Pat Ferate

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.