0
我正在嘗試使用RestSharp Api來使用GustPay Api。我很困惑如何在請求中傳遞「api_key」和「api_secret」。與GustPay一起使用RestSharp Api
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);