Snipplr interface for use with Snipplr API


/ Published in: VB.NET
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <XmlRpcUrl("http://snipplr.com/xml-rpc.php")> _
  2. Public Interface SnipplrIntf
  3. Inherits IXmlRpcProxy
  4.  
  5. <XmlRpcMethod("user.checkkey")> _
  6. Function CheckUserKey(ByVal api_key As String) As Integer
  7.  
  8. <XmlRpcMethod("snippet.list")> _
  9. Function GetSnippetsList(ByVal api_key As String) As SnipplrSnippetsList()
  10.  
  11. <XmlRpcMethod("snippet.get")> _
  12. Function GetSnippet(ByVal snippet_id As String) As SnipplrSnippet
  13.  
  14. <XmlRpcMethod("snippet.post")> _
  15. Function PostSnippet(ByVal api_key As String, ByVal title As String, ByVal code As String, ByVal tags As String, ByVal language As String) As String
  16.  
  17. <XmlRpcMethod("snippet.delete")> _
  18. Function DeleteSnippet(ByVal api_key As String, ByVal snippet_id As String) As Integer
  19.  
  20. End Interface

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.