UCWA2.0-CS icon indicating copy to clipboard operation
UCWA2.0-CS copied to clipboard

How to send HTML Markdown text

Open dipincluster opened this issue 7 years ago • 6 comments

Hi I am using ur project as a base for one of my implementaition can you post a code sample or a walkthrough on how to post html Markdown text to the user like this image I have set the {"SupportedModalities":["Messaging"],"supportedMessageFormats":["Plain","Html"]} in Sign in method but still not able to send html markdown is it because when getting Http Client in line 221(HttpService.cs) Content-type is not set to text/html or is it because in line 226 where in new StringContent(body.ToString(), Encoding.UTF8)); content type of body is not set to text/html when i made some changes the application wont connect at all

dipincluster avatar Jul 08 '17 13:07 dipincluster

I figured the problem , the body of the post has to have a content-type of :text/html

dipincluster avatar Jul 11 '17 11:07 dipincluster

Good catch. Will you create pull request?

kenakamu avatar Jul 11 '17 11:07 kenakamu

It is possible to use this to enable markdown on S4B?

BelvedereHenrique avatar Jul 11 '17 11:07 BelvedereHenrique

If ucwa support it then it should.

kenakamu avatar Jul 11 '17 19:07 kenakamu

@dipincluster how does it look like in the code?

miikaeru avatar Sep 05 '17 08:09 miikaeru

@dipincluster appreciate if you can do Pull Request.

kenakamu avatar Sep 14 '17 01:09 kenakamu