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
C# without RestClient
var request = WebRequest.CreateHttp("https://api.whispir.com/messages?apikey=<REPLACE_ME>"); request.Method = "POST"; request.ContentType = "application/vnd.whispir.message-v1+json"; request.Accept = "application/vnd.whispir.message-v1+json"; request.Headers.Add("authorization", "<REPLACE_ME>"); var bytes = Encoding.UTF8.GetBytes("{\"to\":\"<REPLACE_ME>\",\"subject\":\"<REPLACE_ME>\",\"body\":\"<REPLACE_ME>\"}"); request.ContentLength = bytes.Length; using (var stream = request.GetRequestStream()) { stream.Write(bytes, 0, bytes.Length); try { using (var response = request.GetResponse()) { var result = (new StreamReader(response.GetResponseStream())).ReadToEnd(); } } catch (WebException wex) { using (var response = wex.Response) { var error = (new StreamReader(response.GetResponseStream())).ReadToEnd(); } } }
The text was updated successfully, but these errors were encountered:
Cleaning up old issues, so closing this out, this should be raised on HTTPSnippet if it is still an issue. Thank you!
Sorry, something went wrong.
No branches or pull requests
C# without RestClient
The text was updated successfully, but these errors were encountered: