Share Pastebin
Guest
Public paste!

Y0K3S3

By: a guest | Dec 24th, 2009 | Syntax: C# | Size: 0.47 KB | Hits: 171 | Expires: Never
Copy text to clipboard
  1. Curl.GlobalInit((int)CURLinitFlag.CURL_GLOBAL_ALL);
  2. Easy easy = new Easy();
  3. Easy.ReadFunction wf = new Easy.ReadFunction(OnWriteData);
  4. string statusid = "idejemplo"; //Id del Status
  5. easy.SetOptCURLoption.CURLOPT_URL,"http://twitter.com/statuses/destroy/" + statusid + ".xml");
  6. easy.SetOpt(CURLoption.CURLOPT_POST,true);
  7. easy.SetOpt(CURLoption.CURLOPT_USERPWD, _TWITTERUSER + ":" + _TWITTERPASS);
  8. string code = easy.Perform().ToString();
  9. easy.Cleanup();
  10. Curl.GlobalCleanup();