PHP curl script for Tweetburner API


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2.  
  3. $ch = curl_init("http://tweetburner.com/links");
  4. curl_setopt($ch, CURLOPT_POST, true);
  5. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  6. curl_setopt($ch, CURLOPT_POSTFIELDS, "link[url]=nu.nl");
  7. $twurl = curl_exec($ch);
  8. echo $twurl . "\n";
  9.  
  10. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.