Dear Sir/Madam,
I can create that script for you but I need to see the API First.
I have +5 years developing PHP, MySQL, REST APIs and JSON, Javascript , CSS And HTML With 180+ Website and scripts created/Editted.
I can do fix it for you but I need to know more about your project so feel free to PM me before accepting the offer.
Also feel free to PM me if you have any questions. I will be glad to answer you :)
I'm also open to discuss about job, budget and time.
Kind Wishes,
Mahdyar.