POST api/SlackInteractiveButton/Post
Slack API makes a POST call to StudyTree server whenever a SLACK USER (aka StudyTree team) presses an interactive button (currently the message posted by Dialogflow) with a payload containing channel name, the button message timestamp, and other info. If button click was "accept", update Slack platform to show that LEON bot responded to the user (student) with the message that the payload contained This call does not post to StudyTree messages table. The same message is posted to StudyTree.Messages table via SlackController/Post
Request Information
URI Parameters
None.
Body Parameters
PostSlackInteractiveComponentDtoName | Description | Type | Additional information |
---|---|---|---|
payload | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "payload": "sample string 1" }
application/xml, text/xml
Sample:
<PostSlackInteractiveComponentDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StudyTree.Core.Dtos.SlackNs"> <payload>sample string 1</payload> </PostSlackInteractiveComponentDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |