Ok so using Firefiok Rest tool I was able to see that It encyrpts the userName and password and adds it to the headers. (It would be nice to know what it is doing).
BUT..I am now getting Status Code 415 Unsupported Media Type
I tried adding Content-Type: application/json and Accept: application/json
with a body of
"html" : "This is my comment"
Is there a complete example of V2 Rest API (all searches yield Old School RPC way of doing things) that shows what exact headres to send as well as what a request body looks like for a post (like post of a document or discussion)??
I am also facing the same problem (unauthorized 401) while accessing the api via c# using the same method that you are using. Did you find a way out of this..??
Please reply if you have found the solution for this.