Hi,
I have 2 questions and would really appreciate some help!
Q1) I've been experimenting with the "Take a picture of Mountain View" example. I'd like to write an app similar to this that would ask users to take a photo and then display it instantly on a web page. The example app returns a text string containing the URL where the image is saved on Human.io's servers. How can I 'grab' this image and save a copy on my own server?
Sorry if this is a really dumb question, I am also new to Python so have a lot to learn!
Q2) I'd like to call Human.io Python scripts from within a PHP script, then return the results to PHP. For example, say I wanted to run a survey using Human.io, targeted at people in a certain (user defined) place. I'm thinking of something like the following:
1. Collect form data (such as co-ordinates of the place I want to survey)
2. Launch Python script to complete the task in Human.io, passing the variables I just collected
3. Return the responses from Python back to PHP and save in a MySQL database
4. Have a page written in PHP to view/analyse the results
How do I run a Python script from within PHP, and return the results back to PHP? Or should I be skipping the PHP altogether and doing everything in Python?
Thanks for any help.