Groupy¶
The simple yet powerful API client for the GroupMe messaging service.
$ python3 -m pip install GroupyAPI
>>> from groupy import Client
>>> client = Client.from_token('api_token')
>>> groups = list(client.groups.list_all())
>>> for group in groups:
... print(group.name)
>>> group = groups[0]
>>> for member in group.members:
... print(member.nickname)
>>> for message in group.messages.list_all():
... print(message.text)
... for attachment in message.attachments:
... print(attachment.type)
... if 'love' in message.text.lower():
... message.like()
Features¶
Groupy supports the entire GroupMe API… plus one or two undocumented features.
- list current and former groups
- create, update, and destroy groups
- list group and chat messages
- access group leaderboards and galleries
- post new messages to groups and chats
- upload images for use as attachments
- download image attachments
- add, remove, and list group members
- like and unlike messages
- access your user account details
- update your SMS mode settings
- block and unblock other users
- post messages as a bot
- create, list, update, and destroy bots
- list chats with other users
- join new groups and rejoin former groups
- transfer group ownership
Table of Contents¶
- Installation
- Troubleshooting
- Getting Started
- Developer Docs
- Contributing
- Change Log
- v0.10.2 (October 3, 2018)
- v0.10.1 (July 10, 2018)
- v0.10.0 (June 4, 2018)
- v0.9.2 (December 23, 2017)
- v0.9.0 (December 23, 2017)
- v0.8.1 (December 19, 2017)
- v0.8.0 (December 15, 2017)
- v0.7.1 (March 29, 2017)
- v0.7.0 (November 19, 2016)
- v0.6.6 (April 23, 2016)
- v0.6.5 (January 17, 2016)
- v0.6.4 (December 31, 2015)
- v0.6.3 (December 23, 2015)
- v0.6.2 (May 3, 2015)
- v0.6.1 (April 25, 2015)
- v0.5.8 (December 9, 2014)
- v0.5.3 (September 19, 2014)
- v0.5.2 (September 14, 2014)
- v0.5.1 (August 25, 2014)
- v0.5.0 (August 20, 2014)
- v0.4.0 (August 18, 2014)
- v0.3.1 (August 14, 2014)
- v0.3.0 (August 12, 2014)
- v0.2.0 (August 11, 2014)
- v0.1.3 (August 10, 2014)
- v0.1.0 (August 9, 2014)
About GroupMe¶
GroupMe is a messaging app that allows you to create groups and have others join them with you. In addition to group messaging, fellow group members can be messaged directly. GroupMe is available for most platforms, lets you share links, images, and locations, and messages can be favorited (or “liked”). You can read more about GroupMe, but the best part about it is that they provide an API!
The GroupMe API is documented, but there are some notable omissions. Many of the properties of groups and messages are not documented, and some features are only hinted at by the documentation. Regardless, all of the information about your groups, their members, their messages, you, and your bots can be obtained through the GroupMe API. You can read the API documentation for more (or less) detailed information.