Mark7294305
Posts: 0
Joined: Fri Dec 26, 2014 2:10 am

Google place photos api setup failure

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Google place photos api setup failure

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.

Mark7294305
Posts: 0
Joined: Fri Dec 26, 2014 2:10 am

Google place photos api setup failure

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

Mark7294305
Posts: 0
Joined: Fri Dec 26, 2014 2:10 am

Google place photos api setup failure

Hello
Can anyone help me with this??

Mark7294305
Posts: 0
Joined: Fri Dec 26, 2014 2:10 am

Google place photos api setup failure

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"

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Google place photos api setup failure

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?

Mark7294305
Posts: 0
Joined: Fri Dec 26, 2014 2:10 am

Google place photos api setup failure

Hi Illya
Thank you for your reply. Ok this is what I've done so far

  1. I went to the website https://developers.google.com/places/...
    2.I copied the example they gave

    https://maps.googleapis.com/maps/api/...

  2. I created a new rest service and pasted the above link to the URL section.

  3. Please see the screen shot of the results Image Image Image

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Google place photos api setup failure

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

Mark7294305
Posts: 0
Joined: Fri Dec 26, 2014 2:10 am

Google place photos api setup failure

Hi Sergiy
Can you give me an example on how to do this?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Google place photos api setup failure

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.

Return to “Issues”