You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or rather, I guess it would be nice to have a new method such as as_string() so that we can get a string and print it to where WE choose (e.g. log file).
The text was updated successfully, but these errors were encountered:
Instead of adding another method, would you consider just referencing the payload class attribute?
It's a python object, but can also be dumped to json or pretty printed.
Example:
# setupteams_message=pymsteams.connectorcard(os.getenv("MS_TEAMS_WEBHOOK"))
teams_message.text("This is a simple text message.")
teams_message.title("Simple Message Title")
# dump to json stringimportjsonjson.dumps(teams_message.payload)
# output: '{"text": "This is a simple text message.", "title": "Simple Message Title"}'# pretty printingimportpprintpprint.pprint(teams_message.payload)
# output: {'text': 'This is a simple text message.', 'title': 'Simple Message Title'}
Or rather, I guess it would be nice to have a new method such as as_string() so that we can get a string and print it to where WE choose (e.g. log file).
The text was updated successfully, but these errors were encountered: