We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I was trying to use httpSnippet to generate client-code in C# and I got
var client = new RestClient("https://api.apyhub.com/extract/text/word-file"); var request = new RestRequest(Method.POST); request.AddHeader("apy-token", "APY0kllzrWDJ1AXxg3cfjxwfAhrXaSuarykmVh2gqleNPi0LujGn4vflrsu1MC58"); request.AddHeader("Content-Type", "multipart/form-data; boundary=---011000010111000001101001"); request.AddParameter("multipart/form-data; boundary=---011000010111000001101001", "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n@\"test.docx\"\r\n-----011000010111000001101001--\r\n", ParameterType.RequestBody); IRestResponse response = client.Execute(request);
which is differed from I got in postman
var options = new RestClientOptions("https://api.apyhub.com") { MaxTimeout = -1, }; var client = new RestClient(options); var request = new RestRequest("/extract/text/word-file", Method.Post); request.AddHeader("apy-token", "APY0kllzrWDJ1AXxg3cfjxwfAhrXaSuarykmVh2gqleNPi0LujGn4vflrsu1MC58"); request.AlwaysMultipartFormData = true; request.AddFile("file", "/path/to/file"); RestResponse response = await client.ExecuteAsync(request); Console.WriteLine(response.Content);
are they same ? why is the differnece ?
The text was updated successfully, but these errors were encountered:
Sidenote: You should probably edit your issue to remove your access token from the code snippets you shared aboves
Sorry, something went wrong.
No branches or pull requests
I was trying to use httpSnippet to generate client-code in C# and I got
which is differed from I got in postman
are they same ?
why is the differnece ?
The text was updated successfully, but these errors were encountered: