Editer le texte de cette page (date de la dernière modification: 7 Avril, 2007 15:23 (diff))

lien du wiki canonique fait référence.
ici. Regardez aussi le
Google Group de discussion de développement Twitter
http://twitter.com/statuses/public_timeline.json
http://twitter.com/statuses/public_timeline.xml
http://twitter.com/statuses/public_timeline.rss
http://twitter.com/statuses/public_timeline.atom
http://twitter.com/statuses/public_timeline.xml?count=5
http://username:password@twitter.com/statuses/user_timeline.xml
Toute autre implémentation d'autorisation basique devrait référer aux librairies WWW de votre langage de programmation.
Si vous préférez, vous pouvez utiliser un gestionnaire de cookie pour connecter via l'autorisation du site web. Envoyez une requête POST à
http://twitter.com/login avec les ensembles de paramètres appropriés '<code>nomutilisateur ou email</code>' et '<code>motdepasse</code>'. Les titres de la réponse comprendront un cookie '<code>_twitter_session</code>' cookie. Présentez cela sur toutes les futures requêtes.
http://twitter.com/statuses/user_timeline.json
http://twitter.com/statuses/user_timeline.xml
http://twitter.com/statuses/user_timeline.rss
http://twitter.com/statuses/user_timeline.atom
http://twitter.com/statuses/friends_timeline.json
http://twitter.com/statuses/friends_timeline.xml
http://twitter.com/statuses/friends_timeline.rss
http://twitter.com/statuses/friends_timeline.atom
http://twitter.com/statuses/friends.json
http://twitter.com/statuses/friends.xml
http://twitter.com/statuses/friends.rss</raw>-
http://twitter.com/statuses/friends.atom</raw>-
http://twitter.com/statuses/friends.json
http://twitter.com/statuses/friends.xml
http://twitter.com/statuses/friends.rss</raw>-
http://twitter.com/statuses/friends.atom</raw>-
http://twitter.com/statuses/update.json
http://twitter.com/statuses/update.xml
This command allows you to set various account settings for the authorized user. Send a POST to the following URL:
The following parameter names should be self explanatory. Don't forget to URL Encode both the parameter name and value if your library doesn't handle that for you automatically.
Champs renvoyés :
| Field Path | Data format | Example |
|---|---|---|
created_at | HTTP Format date | Tue Mar 13 00:12:41 +0000 2007 |
text | Up to 160 characters of utf8 | Creating this table |
id | Integer | 123 |
user.name | Up to 40 characters of utf8 | Rick Measham |
user.description | Up to 160 characters of utf8 | Perl and Javascript Developer |
user.location | Up to 30 characters of utf8 | Melbourne, Australia |
user.screen_name | Up to 15 characters from: A-Z a-z 0-9 and _ | RickMeasham |
user.url | Up to 100 characters of utf8 | http://rick.measham.id.au/ |
user.id | Integer | 1050881 |
Fields returned:
| Field Path | Data format | Example |
|---|---|---|
id | Integer | 1050881 |
name | Up to 40 characters of utf8 | Rick Measham |
location | Up to 30 characters of utf8 | Melbourne, Australia |
description | Up to 160 characters of utf8 | Perl and Javascript Developer |
profile_image_url | Valid URL at twitter.com (the query string appears to be a random number to force a reload each time) | http://static.twitter.com//system/user/profile_image/1050881/normal/rickm.png?1173740203 |
url | Up to 100 characters of utf8 | http://rick.measham.id.au/ |
status.created_at | HTTP Format date | Tue Mar 13 00:12:41 +0000 2007 |
status.id | Integer | 123 |
status.text | Up to 160 characters of utf8 | Creating this table |
(Note that the XML looks like: <code><users><user><created at> ... </created_at> ... </user><users></code>
Rick Measham (that's me!) then suggested the following headers, to which Alex replied: Those X headers are exactly along the lines of what I was thinking. Thanks for setting a sane de-facto standard!
The following request header **should** be used when making the above calls:
<client> <name>GoogleGadget</name> <version>2.01</version> <author> <name>Rick Measham</name> <email>google@twitter.isite.net.au</email> <twitter>RickMeasham</twitter> </author> <url>http://twitter.isite.net.au</url> <twitter>GoogleGadget</twitter> <description><[CDATA[ The Twitter Google Gadget brings all the fun of twitter to your Google personalised homepage. <a href="http://fusion.google.com/add?feedurl=http%3A//twitter.isite.net.au/twitter.xml"><img src="http://buttons.googlesyndication.com/fusion/add.gif" width="104" height="17" border="0" alt="Add to Google"></a> ]]> </client></blockquote>
|
Les pages d'intérêt public
Accueil
A propos de Twitter ?
Célébrités Mineures
Chats
Commentaires des Clients
Evénements
FAQ
Les Fans
Les Faux
Pas des humains
Optimisons Twitter
Podcasteurs
Pourquoi ce site ?
Presse et média
Services
Twitter en bref
Brainstorming
Utilité de Twitter ?
Le coin des geeks
Docs API non officiels
script temps relatif
Design
animation: xtof
gabarit laurent
hébergement helmut sur son moulin ProWiki