Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sQu4rks committed Nov 20, 2019
1 parent 19fe181 commit 814f494
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -100,14 +100,14 @@ card = AdaptiveCard(body=[greeting, first_name, age], actions=[submit])
# Create attachment
attachment = {
"contentType": "application/vnd.microsoft.card.adaptive",
"content": card.to_dict(),
"text": "Fallback Text"
"content": card.to_dict()
}

# Create payload for the webrequest
payload = {
"roomId": "<INSERT_YOUR_ROOM_HERE>",
"attachments" : [attachment]
"attachments" : [attachment],
"text": "Fallback Text"
}

response = requests.post("https://api.ciscospark.com/v1/messages", headers=headers, data=payload)
Expand All @@ -134,7 +134,7 @@ card = AdaptiveCard(body=[greeting, first_name, age], actions=[submit])

# Create a webex teams api connection
api = WebexTeamsAPI()

room_id = "<INSERT_ROOM_ID_HERE>"
# Create a dict that will contain the card as well as some meta information
attachment = {
"contentType": "application/vnd.microsoft.card.adaptive",
Expand Down

0 comments on commit 814f494

Please sign in to comment.