Advertisement
Guest User

rozpoznawanie emaili

a guest
Dec 15th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. var uri = "https://southcentralus.api.cognitive.microsoft.com/customvision/v2.0/Prediction/f1d565db-788a-4108-b77c-59cbe586e502/url?iterationId=6be50293-23bb-4f06-9024-260d7df2cc14";
  2. var client = new HttpClient();
  3. var httpRequestMessage = new HttpRequestMessage
  4. {
  5. RequestUri = new Uri(uri),
  6. Method = HttpMethod.Post,
  7. Headers = {
  8. {"Prediction-Key", "3c16885353b24d5991593fa8f81c265f"},
  9. {"Prediction-Key", "application/json"}
  10. },
  11. Content = new ByteArrayContent(Encoding.UTF8.GetBytes("{\"Url\": \"https://1.bp.blogspot.com/-cE_2wW92BnA/WZ107180o-I/AAAAAAAAAHc/eWtKLeahdhEADY_ULvRch2bXluKxT8kYgCLcBGAs/s728-e100/email-exploit.png\"}"))
  12. };
  13.  
  14. var resp = await client.SendAsync(httpRequestMessage);
  15.  
  16. return await resp.Content.ReadAsStringAsync();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement