JSON: Difference between revisions

From Medien Wiki
mNo edit summary
Line 166: Line 166:
<li>publishing, modifying or destroying data on Twitter requires the POST request.</li></ul>
<li>publishing, modifying or destroying data on Twitter requires the POST request.</li></ul>
<li>A command-line is all you need to interact with the Twitter API</li>
<li>A command-line is all you need to interact with the Twitter API</li>
<li>There are [http://dev.twitter.com/pages/libraries Twitter API libraries] for almost any language</li>
<li>There are [http://dev.twitter.com/pages/libraries Twitter API libraries] for almost any language</li></ul>
==Create a Small Twitter Client==
<p>Since it's so easy to use the Twitter's API, i'm going to show here how to create a small twitter client. I'm going to do some extra steps so that i can refer a few more things about JSON and Twitter</p>
 
<p>So the process i'm going to use is:</p>
<ol>
<li>Get the JSON File with [[PHP]] and [[Curl]]</li>
<li>Print the tweets</li>
<li>Serialize a form with [[JavaScript]]</li>
<li>Send the form to [[PHP]] with [[AJAX]]</li>
<li>Post the tweet using a [http://dev.twitter.com/pages/libraries PHP Twitter Library]
</ol>