Advertisement
thunderluca93

Untitled

Sep 15th, 2014
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. - URL per la richiesta:
  2.  
  3. "https://disqus.com/api/3.0/threads/list.json?api_key=" + App.DisqusPubKey + "&forum=chimerarevo&thread=link:" + url
  4.  
  5. App.DisqusPubKey รจ la chiave pubblica che ti danno loro. Se non hai ancora messo il dominio all'applicazione registrata su Disqus, metti quello che vuoi (io ho messo "chimerarevo.com")
  6.  
  7. - Response class
  8.  
  9. public class ThreadRoot
  10. {
  11. [JsonProperty("code")]
  12. public int StatusCode { get; set; }
  13.  
  14. [JsonProperty("response")]
  15. public List<ThreadElement> Threads { get; set; }
  16. }
  17.  
  18. public class ThreadElement
  19. {
  20. [JsonProperty("clean_title")]
  21. public string CleanTitle { get; set; }
  22.  
  23. [JsonProperty("isDeleted")]
  24. public bool IsDeleted { get; set; }
  25.  
  26. [JsonProperty("id")]
  27. public string Id { get; set; }
  28.  
  29. [JsonProperty("isClosed")]
  30. public bool IsClosed { get; set; }
  31.  
  32. [JsonProperty("posts")]
  33. public long Posts { get; set; }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement