I am looking for a simple script that I can use to send some text to Twitter, and Linked in.
The objective is to be able to have a simple sample PHP script that looks something like this:
<html>
<head>
<title>Twitter and Linked In API</title>
<script type="text/javascript" src="jquery.js">
</head>
<body>
<?php $dummy_txt = 'Hello world! from me'; ?>
<div id="tweet">Tweet</div>
<div id="sendto_li">Send to Linked In</div>
$(body).ready(function(){
$('#tweet').click(function(){
//post data to server
});
$('#sendto_li').click(function(){
//post data to server
});
});
</body>
</html>
//Server side
<?php
function tweet(){
}
function sendto_linkedin(){
}
?>
Cabn anyone help with writing the server side functions that will encapsulate the Twitter and LinkedIn API?