Inscription Dailygraphe

Inscrivez-vous avec via twitter


Ou avec votre email

s'inscrire  

Connexion Dailygraphe

Email :
Mot de passe :
mot de passe oublié?
CONNEXION


Ou connectez-vous avec votre compte twitter
TWITTER
se connecter

 Télé  Société  Communauté  Culture  Games  Beauté  Sport  Vidéos  Cinéma 

Dailygraphe API Specification


Using the API

  • Currently 'xml' (default) only is supported. The format is specified by the extension of the method name (e.g. .xml)
  • Variables are passed to the API via POST or GET (see bellow)
  • Coming soon : a personal api key wich will be display in your account.

API Methods

Request user informations

This method will return information about user and its followers and followings.

URL

https://www.dailygraphe.com/user/screen_name.xml

Formats

xml

Notes

Failures when using the txt format are indicated using HTTP response 500 - no text is returned

Parameters

key (coming soon) - your API key
screen_name (required) - text without the @ character

Example call to this API:

  curl -d "key=YOURAPIKEY" \
       "http://www.dailygraphe.com/user/dailygraphe.xml"
       

Example XML Response

<answer>
	<user>
		<user_id>33</user_id>
		<screen_name>dailygraphe</screen_name>
		<name>dailygraphe</name>
		<bio>Page officielle</bio>
		<profile_image_url>https://si0.twimg.com/profile_images/2882270034/a5dc742ba2792774105239f66307bdc3_reasonably_small.png</profile_image_url>
		<profile_background_image_url>http://www.dailygraphe.com/images/background_test.png</profile_background_image_url>
		<follower_list>
			<follower_0>
				<id>37</id>
				<screen_name>dailygraphetest</screen_name>
			</follower_0>
		</follower_list>
		<following_list>
			<following_0>
				<id>31</id>
				<screen_name>leshark75</screen_name>
			</following_0>
		</following_list>
	</user>
	<version>V1.0.0</version>
	<timestamp>1361547151</timestamp>
</answer>
			

Example Text Response

N.A.

Request home page articles

This method will return information about articles from the home page.

URL

https://www.dailygraphe.com/la_une.xml

Formats

xml

Notes

Failures when using the txt format are indicated using HTTP response 500 - no text is returned

Parameters

key (coming soon) - your API key

Example call to this API:

  curl -d "key=YOURAPIKEY" \
       "http://www.dailygraphe.com/la_une.xml"
       

Example XML Response

<answer>
	<articles>
	</articles>
	<version>V1.0.0</version>
	<timestamp>1361547151</timestamp>
</answer>
			

Example Text Response

N.A.

Request last published articles

This method will return information about last published articles from dailygraphe.

URL

https://www.dailygraphe.com/last_articles.xml

Formats

xml

Notes

Failures when using the txt format are indicated using HTTP response 500 - no text is returned

Parameters

key (coming soon) - your API key

Example call to this API:

  curl -d "key=YOURAPIKEY" \
       "http://www.dailygraphe.com/last_articles.xml"
       

Example XML Response

<answer>
	<articles>
	</articles>
	<version>V1.0.0</version>
	<timestamp>1361547151</timestamp>
</answer>
			

Example Text Response

N.A.


Error Codes/Messages

Error Message
1 Bad Method / Unexpected Error.
2 Database Failure. Try Again.
3 Missing / Invalid API Key.
4 Authentication Failure.
5 Transaction Limit Reached
6 Permission Denied.
101 Missing / Invalid Route.
102 Missing / Invalid Account.
103 Missing / Invalid Message.
104 Missing / Invalid URL.
105 Invalid shorten account or URL.