To see the original answer, I use the OnBeforeDeserialization event, but I want to see the raw request because I get errors, and I want to know exactly what is being sent.
Is there a way to do this without using restsharp source code and debugging it?
Thanks you
Edit 1:
Managed to catch traffic using a violinist: this is a TextView request:
assignee=test&milestone=0&state=open&title=test%20issue&body=test%20issue
This is the answer:
{"message":"Problems parsing JSON"}
This is how I configure my query:
var request = new RestRequest ();
request.Resource = "repos/" + repo_slug + "/issues";
request.Method = Method.POST;
request.OnBeforeDeserialization = resp => { cnt = resp.Content; };
GitModels.IssuePost toPostIssue = Git2Bit.GitModels.Bit2GitTranslator.translate(bitIssue);
request.AddParameter("assignee", toPostIssue.assignee, ParameterType.GetOrPost);
request.AddParameter("milestone", toPostIssue.milestone, ParameterType.GetOrPost);
request.AddParameter("state", toPostIssue.state, ParameterType.GetOrPost);
request.AddParameter("body", toPostIssue.body, ParameterType.GetOrPost);
Getting issues instead of publishing .: |
source
share