I need two PHP scripts that will work with an API.
The API is prosperent.com
Attached is a php class, so this project should be very straight forward as all the hard work is done !
Script 1
I need to be able to supply keywords, the script will query the api for each keyword and return the results to a txt file on the server.
I will be supplying lots of keywords, so i need a couple of Options available. Heres how i see it working.
Keywords will be entered into a form
Then we will have a tickbox for 2 options to select
Option1 – Return one txt file for each keyword entered
Option2 – Return one txt file for ALL the keywords entered
So if i enter 100 kws, option1 will create 100 txt files, option2 will only create one.
Click the GO Button..
All txt files will will output to the output folder
filenames = if option1 is used the filenames will be “number of results returned” – “keyword” .txt
example – 344-my-keyword.txt
If option2 is used the filename will be “number of results” – “first keyword in the list” .txt
example – 4345-another-keyword.txt
Script 2
Similar to Script1. This time we will be running keywords against the API to see if results are returned for each keyword.
We will have an input & output folder.
In the input folder i want to be able place multiple txt files, each file will contain lists of keyword.
The script run through each txt file one by one, running all the keywords against the api to see if results are returned for each keyword.
If NO results are returned for a keyword then its deleted.
Once a txt file has been run, the cleaned file will be outputted to the output folder.
Extra Info
The API returns a max of 500 products per query (limit=500)
The Item we want returned is the “keyword” field
One the required parameters is the visitor_ip, we need to hardcode a USA IP in there!
In the class, the calls to the API can be in debug mode, this needs to be set to true.
Both these scripts should be very straight forward for a good php programmer.. Couple of hours work at the most !
Ive attached the php class, and some docs for the API.
Let me know if you have any questions.
Need both scripts ASAP.
$30 available for the project (both scripts)
More work available for right programmer.
