openThesaurus.cs 666 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.Specialized;
  4. using System.Text;
  5. using System.Net.ApiService;
  6. using System.Text.Json;
  7. namespace Sambale {
  8. public class openThesaurus {
  9. public void GetSynonym(string s) {
  10. NameValueCollection nv = new NameValueCollection();
  11. JsonDocument res = client.Get_Json("https://www.openthesaurus.de/synonyme/​search",
  12. new NameValueCollection() {
  13. },
  14. new NameValueCollection() {
  15. { "q", s },
  16. { "format", "application/json" }
  17. }
  18. );
  19. }
  20. }
  21. }