restsharp

    0熱度

    1回答

    我將API的事務響應回調URL設置爲:https://requestb.in/st4fz3st,它給了我一個響應,在調試響應過程時,通過檢查鏈接https://requestb.in/st4fz3st?inspect下面圖像中顯示的結果。 我想要得到的JSON數據,所以我寫了這個C#代碼 string GET(string url) { HttpWebRequest request =

    0熱度

    1回答

    我剛剛用RestSharp下載了一個.zip文件,效果很好。 這裏是我的代碼: private void button3_Click(object sender, EventArgs e) { var client = new RestClient("http://xxx:3080"); var request = new RestRequest("/xxx/ap

    0熱度

    1回答

    我得到這個JSON: "history": { "-Kr6ZcI0_SSeO0tRYGRe": { "created_at": 1502291854572, "id": "1307a006-d8a0-2f72-30bf-3a04410b8d1a", "last_status": "", "method_create": "crea

    0熱度

    1回答

    我正在使用RestSharp nuget包向端點發出http請求。在我的情況下,端點是tableau服務器。請求是用於可信身份驗證並獲取身份驗證票據作爲響應。使用Restsharp庫 C#代碼 [HttpPost] public ActionResult Logon(string url,string username) { string response =

    0熱度

    1回答

    我要上傳文件到這個API https://support.crowdin.com/api/add-file/ 如何創建一個名爲files參數和使用RestSharp添加多個文件呢? 我寫了這段代碼到目前爲止,但它不起作用,RestSharp似乎沒有按預期上傳文件。 var addUrl = new Uri($"https://api.crowdin.com/api/project/{projec

    4熱度

    1回答

    Ť執行 ()我注意到,使用RestSharp: Execute<T>(),當T如下面 public class Result { public List<DBData> Data { get; set; } public int Total { get; set; } public bool Success { get; set; } } 它反序列化JSO

    0熱度

    1回答

    我有任何方法: IExternalResponse<ReserveResponse> ReserveFreePlacement(IDictionary<int,int> ticketsInfo) { var request = new RestRequest("", Method.POST); request.AddJsonBody( new {

    2熱度

    1回答

    我有一個客戶端發送JSON到我的asp.net mvc應用程序。我可以在哪裏接收json主體? 發送: var client = new RestClient(uri); client.Authenticator = new NtlmAuthenticator(); RestRequest requestCom = new RestRequest("",

    0熱度

    1回答

    以下代碼適用於我的筆記本電腦,但是當我在生產環境中託管時,它不起作用,沒有錯誤,沒有例外,沒有響應。什麼可能是錯誤。我將restSharp dll複製到bin文件夾中。我正在使用C#ASP .NET。 fp1是fileupload控件。 var client = new RestClient("https://job.servicejd.com/post"); var request =

    0熱度

    1回答

    我正在使用下面的代碼來解析JSON。我得到例外。 using System.Collections.Generic; using Newtonsoft.Json; using RestSharp; using WebAutomation.BDD.Data; namespace WebAutomation.Utils { public class RestApi {