Skip to main content

Easy use of the GroupMe API with Python

Project description

PYGROUPME VER 0.0.1

Simple python wrapper for the GroupMe API that allows users to interface with Microsoft's GroupMe messaging platform via the requests module. I created this after realizing that there is no existing wrapper for the API in python, and typing the code necessary to interface with GroupMe repeatedly in code is exhausting. In order to interact with GroupMe, users first need to have a GroupMe account and a designated GroupMe group, then register a bot at https://dev.groupme.com/session/new and provide the program with its bot id to send messages and/or the token code to receive messages.

Example usage:

import pygroupme as pgm

pgm.gm_msg(bid=BOT_ID_HERE, text="Hello, world!") # sends "Hello, world!" to the GroupMe chat in which the user has set up his GroupME api interface
message = pgm.gm_rec(token=USER_TOKEN_HERE, gid=USER_GID_HERE, limt=n) # receive the last n messages from a GroupMe chat, default is 1

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygroupme-0.0.2.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

pygroupme-0.0.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file pygroupme-0.0.2.tar.gz.

File metadata

  • Download URL: pygroupme-0.0.2.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0

File hashes

Hashes for pygroupme-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8463258793f42884f8b8d3c776540a4f6aee529e21e28fc337f0cbbb4fba71f7
MD5 aa61d566ced22e50c154f5bf7e566a61
BLAKE2b-256 57eb7481bdeda3b4a621e4c1acf27b6b40c1ceb5db60e0e2a2f414a008f095c0

See more details on using hashes here.

File details

Details for the file pygroupme-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pygroupme-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0

File hashes

Hashes for pygroupme-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 efb2443c6992fb69a0ca1a3f34a3d398d6ef360a5ce838453afdd756a9b4a808
MD5 eb406651a3968202d00b02a931ce8b66
BLAKE2b-256 e7070b26bd8886d9ce008479e8c6040a7e3f37ac52bc5cac745e6fdecf715527

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page