Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

How to send HTML Markdown text #21

Open
dipincluster opened this issue Jul 8, 2017 · 6 comments
Open

How to send HTML Markdown text #21

dipincluster opened this issue Jul 8, 2017 · 6 comments

Comments

@dipincluster
Copy link

dipincluster commented Jul 8, 2017

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
Copy link
Author

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

@kenakamu
Copy link
Owner

Good catch. Will you create pull request?

@BelvedereHenrique
Copy link

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

@kenakamu
Copy link
Owner

If ucwa support it then it should.

@miikaeru
Copy link

miikaeru commented Sep 5, 2017

@dipincluster how does it look like in the code?

@kenakamu
Copy link
Owner

@dipincluster appreciate if you can do Pull Request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants