RestSharp POST request translation from cURL request

后端 未结 2 911
栀梦
栀梦 2021-01-21 00:37

I\'m trying to make a POST request using RestSharp to create an issue in JIRA, and what I have to work with is an example that uses cURL. I\'m not familiar with either enough to

2条回答
  •  遥遥无期
    2021-01-21 01:28

    dont do

    request.AddParameter("data", request.JsonSerializer.Serialize(issueToCreate));
    

    instead try:

    request.AddBody(issueToCreate);
    

提交回复
热议问题