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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for takeme_pymsteams-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48272fc670b06619df908fcb76eae58d42b59fdb3f8f9c1dc6cde7e648133757 |
|
MD5 | 9d8ec984d47ed7c8accc0f8455ae3dfb |
|
BLAKE2b-256 | 27ab1d7cb167c48919106f9c2c69c37390d66f3a16928db5cc05b2371f4e487e |