Sign-in-with-twitter-d

Wikihashtag 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 hashtag informations

This method will return information about hashtag and its TV show (programm).

URL

https://www.wikihashtag.com/hashtag/hashtag_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
hashtag_name (required) - text without the # character

Example call to this API:

  curl -d "key=YOURAPIKEY" \
       "http://www.wikihashtag.com/hashtag/ADP.xml"
       

Example XML Response

<answer>
	<hashtag>
		<programm_id>
			9
		</programm_id>
		<programm_name>
			L'amour est dans le pré
		</programm_name>
		<programm_description>
			Annie, 56 ans, éleveuse de chevaux en Eure-et-Loir, doit faire un
			choix entre Guy et Bernard. Bruno, 44 ans, pépiniériste viticole
			dans le Vaucluse, a finalement ouvert son coeur à l'une de ses
			prétendantes. (...)
		</programm_description>
		<author>
			M6lachaine
		</author>
		<broadcaster>
			M6lachaine
		</broadcaster>
		<hashtag_list>
			<hashtag_0>
				<id>
					11
				</id>
				<name>
					ADP
				</name>
			</hashtag_0>
		</hashtag_list>
		<presenter_list/>
	</hashtag>
	<version>
		V1.0.0
	</version>
	<timestamp>
		1348502705
	</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.



   


   API | Mentions légales | Contactez-nous | © 2012 Wikihashtag - Tous droits réservés