kenakamu / UCWA2.0-CS

C# library for UCWA 2.0
MIT License
24 stars 13 forks source link

How to send HTML Markdown text #21

Open dipincluster opened 7 years ago

dipincluster commented 7 years ago

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 commented 6 years ago

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

kenakamu commented 6 years ago

Good catch. Will you create pull request?

BelvedereHenrique commented 6 years ago

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

kenakamu commented 6 years ago

If ucwa support it then it should.

miikaeru commented 6 years ago

@dipincluster how does it look like in the code?

kenakamu commented 6 years ago

@dipincluster appreciate if you can do Pull Request.