Skip to main content

Python Wrapper for pymsteams

Project description

pymsteams

This module provides wrapper for pymsteams.

Installation

pip install takeme-pymsteams

Usage

import takeme_pymsteams

SP_SITE = 'https://xxxx.sharepoint.com'
SITE_NAME = 'XXXX'
SP_ID = 'user'
SP_PWD = 'abcd'
TEAMS_CHANNEL = 'https://outlook.office.com/webhook/xxxxx/IncomingWebhook/xxx/xxxx/xxxx'

teams = takeme_pymsteams.Teams()
try:
    teams.connect_to_share_point(
        share_point_site=SP_SITE,
        site_name=SITE_NAME,
        user_name=SP_ID,
        password=SP_PWD
    )
    teams.send(
        channel=TEAMS_CHANNEL,
        text='Hello Microsoft Teams!',
        file='Hello.xlsx'
    )
except Exception as ex:
    print(str(ex))

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

takeme_pymsteams-1.0.0.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

takeme_pymsteams-1.0.0-py3-none-any.whl (15.2 kB view hashes)

Uploaded Python 3

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