2

I need to get a data from kiosk (think specific ATM machine) to wordpress database. Kiosk service providers told me to give them Gateway URL and Request format to send data.

Im stuck on this, I dont know which WP API will be able to do it? What will be the gateway url and what request format will it be.

I just dont know where to start this from. I will need to receive the data, save it in DB and then display the data in custom plugin and run different functions on it. I know how to do all this functions once I receive the data, but Im stuck on the step where I need to give the Kiosk providers the instructions in what format to send data and what will be the gateway URL.

Can you help me with this please? Any directions, where to start and which API to use etc...

Thanks a lot in advance :)

4
  • If they have XML files you could just ask where the XML is located and write a script to read the file and then insert it into wordpress. You can use php cron to check for files as often as needed.
    – gdaniel
    Commented Jul 29, 2014 at 1:34
  • Hi @gdaniel thanks for response. XML and Cron will not be helpful as far as I know, because it will be time sensitive operation, as soon as they get data on kiosk they should send it immediately. If I did it with Cron it would not be a best solution to run a cron job every min or every 30 secs to check if there is any new data to grab. Besides, I dont even know if they have XML data, I didnt ask for it for the reason that I wrote above. Any other ideas?
    – Dave
    Commented Jul 29, 2014 at 1:57
  • This sounds like important information that likely needs to be secured and backed-up among other things. I would recommend hiring a professional Dave.
    – jdm2112
    Commented Jul 29, 2014 at 4:12
  • Have a look to this example on my plugin Cortex, it can be a starting point. To improve security, ask the kiosk service to give you the IP address or (addresses class) they will use to send you the request, and before saving data check the IP the request comes form.
    – gmazzap
    Commented Jul 29, 2014 at 9:41

1 Answer 1

0

Sounds like a perfect candidate for the WordPress REST API It's getting integrated with core in 4.1 I think, but you can use it as a plugin for now.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.