No project description provided
Project description
Import
import MsTeamsConnector
Authorize
SCOPE param is optional and set to .default as default
credentials = {
'CLIENT_ID': '{client_id}',
'AUTHORITY': 'https://login.microsoftonline.com/{authority}',
'USERNAME': '{user}',
'PASSWORD': '{pass}',
'SCOPE': [{scope_1}, {scope_2}]
}
msc = MsTeamsConnector(credentials)
Send message
Init Message
msc.create_message(team_id = team_id, channel_id = channel_id)
Add title
msc.add_title('Test Graph API message')
Add HTML text
msc.add_text('Test msg using Graph API')
Add text with mention
msc.add_text('Test msg using Graph API. Mention <at>{User Name}</at>')
Set importance level
Can be only high or normal
msc.set_importance('high')
Set message to reply
msc.set_reply_message(message_id)
Send message
msc.send_message()
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
File details
Details for the file MsTeamsConnector-0.1.7.tar.gz.
File metadata
- Download URL: MsTeamsConnector-0.1.7.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35d0d19c630dcb40f4950501844b8353ba180f7eb30ec5a8cd687a3f8335a013
|
|
| MD5 |
f066d7b982190c2b176ca7ea4aeddd46
|
|
| BLAKE2b-256 |
d2a77279fdd2aae32c949b055411c6a449305bdb9cc11d2d0ca6581243a7c27f
|