Page 1 of 1
Google place photos api setup failure
Posted: Fri Oct 21, 2016 3:58 am
by Mark7294305
Hello Support
I have tried to setup the Google place photos api as a rest service on the JQM appery platform by following the instructions on their website https://developers.google.com/places/.... I tried to use their example
https://maps.googleapis.com/maps/api/...
but this fails when I hit the test button after I add my api key. However it works when I paste the link to a normal browser. Can you confirm if the Google place photos api works on the appery or not? If it does work please could you me the steps on how to get it working.
Thanks in advance
Google place photos api setup failure
Posted: Fri Oct 21, 2016 5:27 pm
by maxkatz
The app (client) doesn't run in Appery.io. It runs in the browser/WebView. You can use any JavaScript library, including Google Place Photos. You need to debug the app and see where exactly it fails to work properly.
Google place photos api setup failure
Posted: Fri Oct 21, 2016 9:43 pm
by Mark7294305
Your reply has not helped me. I need to know if I can setup a rest service for this api and I can how do I do it or do I use a Javascript
Google place photos api setup failure
Posted: Sun Oct 23, 2016 8:18 am
by Mark7294305
Hello
Can anyone help me with this??
Google place photos api setup failure
Posted: Tue Oct 25, 2016 11:40 am
by Mark7294305
Hello Support
Please could someone at Appery help me with this. I have been waiting 4 days for this. I received a "how does" answer and I really need a "how to answer"
Google place photos api setup failure
Posted: Tue Oct 25, 2016 12:46 pm
by Illya Stepanov
Hi Mark - you will need to check Google documentation and how it works and after that implement this approach with Appery.io. Also could you clarify what you have tried and what exactly does not work? Have you debugged your implementation in the app, what are you getting in the browser console?
Google place photos api setup failure
Posted: Tue Oct 25, 2016 8:59 pm
by Mark7294305
Hi Illya
Thank you for your reply. Ok this is what I've done so far
I went to the website https://developers.google.com/places/...
2.I copied the example they gave
https://maps.googleapis.com/maps/api/...
I created a new rest service and pasted the above link to the URL section.
Please see the screen shot of the results
Google place photos api setup failure
Posted: Thu Oct 27, 2016 1:52 pm
by Serhii Kulibaba
Hello Mark,
This is a binary image file, which you can use in the Appery.io application in the image component. Just set that URL to the attribute "src" of that image component
Google place photos api setup failure
Posted: Thu Oct 27, 2016 5:55 pm
by Mark7294305
Hi Sergiy
Can you give me an example on how to do this?
Google place photos api setup failure
Posted: Wed Nov 02, 2016 5:57 am
by Yurii Orishchuk
Hi Mark,
Here is a JS code which you can use on any event (like page show or button click, etc..) to assign url (which returns an image) to image component on the page.
pre
//Where "imageComponentName" is your image component name.
Apperyio("imageComponentName").attr("src", "http://www.sunhome.ru/UsersGallery/wallpapers/41/9100645.jpg");
/pre
Note: you need to change here image component name and url.
Regards.