Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
API Methods.odt | 2011-06-10 | 115.5 kB | |
api.php | 2011-06-10 | 3.4 kB | |
ApiError.php | 2011-06-10 | 2.2 kB | |
ArtistsMethods.php | 2011-06-10 | 4.0 kB | |
config.php | 2011-06-10 | 249 Bytes | |
Database.php | 2011-06-10 | 5.3 kB | |
license.txt | 2011-06-10 | 3.1 kB | |
Methods.php | 2011-06-10 | 7.0 kB | |
README.txt | 2011-06-10 | 1.5 kB | |
TracksMethods.php | 2011-06-10 | 10.8 kB | |
Totals: 10 Items | 153.1 kB | 0 |
********************************************************************************************************************************************* README Description: This file describes the API scripts Author: Infobright Intern team Infobright 2011 ********************************************************************************************************************************************* Description of Files and folders: *api.php The entry point for the API methods. *ArtistsMethods.php Handles requests related to Artists. *TracksMethods.php Handles requests related to Tracks. *Methods.php The base class for the *Methods classes. Contains common functionality for all API methods. *Database.php Wrapper for accessing the database. Takes an input query string and returns the result as an XML. *ApiError.php Contains a helper function for displaying errors. *API Methods.odt Documentation on how to use the API methods Dependencies The API uses the Zend Framework class Zend_Rest_Server to handle the requests. To download the ZEND framework visit http://framework.zend.com/download/current/ Instruction simply place the API files in your web directory and execute them by requesting them in a script or pointing to them in your web browser. For example (assuming everything is running on local machine) navigate to 127.0.0.1/api.php?method=getTracks&genres=rock For more information, please read the documentation named API Methods.