Page 2 of 2
REST GET Request - Pass Variable in URL Issues
Posted: Mon Dec 16, 2013 4:26 pm
by Michael Iglesias
This is a screen shot of my "Start Screen" Events. I am setting the "tnt_id" local storage variable event on page load and then invoking a javascript function which alerts the "tnt_id". This is working as expected when testing the app.
Let me try and return 1, although I did add
return localStorage.getItem('tnt_id');
which apparently isn't working.
REST GET Request - Pass Variable in URL Issues
Posted: Mon Dec 16, 2013 4:34 pm
by Michael Iglesias
Didn't work when I returned 1.
Although it does execute an alert statement. I still don't think that {tnt_id} is being replaced with the local storage variable or the manually return 1
REST GET Request - Pass Variable in URL Issues
Posted: Mon Dec 16, 2013 4:47 pm
by Michael Iglesias
Is there any way in which you can log into the app editor and see if you can spot anything that is wrong?
I have literally tried everything over the hours I've spent trying to figure this thing out 
REST GET Request - Pass Variable in URL Issues
Posted: Mon Dec 16, 2013 5:01 pm
by maxkatz
Sure, share the app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a.
REST GET Request - Pass Variable in URL Issues
Posted: Mon Dec 16, 2013 6:16 pm
by maxkatz
The service was failing to invoke as it doesn't support cross-domain calls. It works fine with Appery.io proxy on.
http://docs.appery.io/documentation/c...
REST GET Request - Pass Variable in URL Issues
Posted: Mon Dec 16, 2013 6:25 pm
by Kateryna Grynko
Hi Michael,
Your service returns 404 with this address:prehttp://162.243.56.184/api/index.php/packages/pre
You should use the following service URL:prehttp://162.243.56.184/api/index.php/packages/{my_id}/pre
Add Request parametert 'my_id' and pass there your ID. Appery.io will automatically replace {my_id} in URL with your number.
REST GET Request - Pass Variable in URL Issues
Posted: Mon Dec 16, 2013 10:37 pm
by Michael Iglesias
Katya & Max,
Everything is working fine now. I wasn't aware that I had to turn on "Appery.io Proxy"
I really appreciate your help and assistance. Appery.io Support is second to none!
Thanks again,
Michael
REST GET Request - Pass Variable in URL Issues
Posted: Mon Dec 16, 2013 11:08 pm
by Kateryna Grynko
Michael,
Glad it's working!