PHP script (CURL wrapper?) to connect to REST API and retrieve data
$30-100 USD
Igangværende
Slået op næsten 13 år siden
$30-100 USD
Betales ved levering
Hey everyone
I need somebody to write a PHP script that connects to a REST API and retrieves the XML data. Once connected, you DO NOT need to format the XML data - I will do that. I just need a script to establish a connection and retrieve the data.
The project deadline is 3 days but if you can guarantee delivery sooner than 3 days I will look preferably on your bid.
If you have any questions please ask. Thanks for your time.
Adam
Here is some information from the API documentation:
*The API is implemented using a REST interface. The REST API is implemented to return CSV, HTML, JSON, serialized output, PHP or XML over HTTP. Every data instance has its own URL and is manipulated in isolation. For the purposes of this document the return format will be XML.
Each time a request is made via the API it is authenticated using a designated username and password on an individual client basis. HTTP Basic Authentication is used to authenticate all requests made to the API.
We recommend using curl ([login to view URL]) for testing the various features the REST API offers. A simple way to test the interface is by calling the get towns method. This method requires no parameters and should always return data. Examples of how to call this method using curl and via your browser are listed below:
Via curl:
> curl -u username:password [login to view URL] towns/format/xml
The following illustrates the URL format for running a search **(this is the method I will be using to retrieve data)**:
[login to view URL] town_id/TOWN_ID/min_rent/MIN_RENT/max_rent/MAX_RENT/ sector/SECTOR_ID/type/TYPE_ID/bedrooms/NUM_BEDROOMS/ address_string/ADDRESS_STRING/format/RETURN_FORMAT*