Set 'Content-Type' header using RestSharp

后端 未结 5 1013
眼角桃花
眼角桃花 2020-12-08 19:39

I\'m building a client for an RSS reading service. I\'m using the RestSharp library to interact with their API.

The API states:

When creating

5条回答
  •  甜味超标
    2020-12-08 19:44

    Here is the solution

    http://restsharp.blogspot.ca/

    Create a json object with same name properties and set the values (Make sure they are similar to those of name value pair for post request.)

    After that use default httpclient.

提交回复
热议问题