我正在尝试使用 RestSharp Api 来使用 GustPay Api。我很困惑如何在请求中传递“api_key”和“api_secret”。
var client = new RestClient("https://www.gustpay.com/api/gust_pass_venue_assignment");
var request = new RestRequest(Method.POST)
{
RequestFormat = DataFormat.Json
};
request.AddBody(request.JsonSerializer.Serialize(new
{
venue_name = "Cape Town Stadium",
latitude = "-33.903441",
longitude = "18.41113"
}));
var response = client.Execute(request);
Console.WriteLine(response.Content);