Discussion Forums  >  Self Hosted Control Panels

Replies: 9    Views: 87

Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
06/01/14 11:09 AM (10 years ago)

Data URL

I'd like to inquire about strategies for use of Data URL and Report To Cloud URL, for multiple Apps. The default config.txt core statement for Data URL is: http://www.mydomain.com/BT-server/api/app/?command=getAppData&appGuid=**** I create my config.txt file via a PHP script, that processes SQL data (names and addresses of points of interest for my Map), and outputs the proper JSON-looking text, with up-to-the-minute places and addresses for my Map... There's nothing in the Data URL statement generated, that tells me where to put my config.txt file! (Where my PHP script should 'fopen()' and 'fwrite()' 'config.txt') Since I might be having 8 Apps shortly, and I'm (planning on) keeping the Apps in respective directories (http://www.mydomain.com/USA/config.txt, /Europe/config.txt, /UK/config.txt, ...), I'm lost here. In testing my App, I modified the Data URL statement to: http://www.mydomain.com/USA/config.txt. The App works, and tapping "refresh" does go out and get the correct config.txt file. But, I'm thinking, the additional "query string" components of the URL, the "?command=getAppData&appGuid=****", has something to do with 'security'...?, "logging"...? Now, I certainly could take an alternate method, and make my config.txt files be: USA-config.txt, Europe-config.txt, UK-config.txt and put them all in one directory. Thus, my inquiry here as to strategy. I'm not finding clues as to how I should modify "http://www.mydomain.com/BT-server/api/app/?command=getAppData&appGuid=****" to specify my multiple (8?) Apps and their paths. Similar for: http://mydomain.com/BT-server/api/app/?command=reportToCloud&appGuid=... What do you do?
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
06/01/14 04:05 PM (10 years ago)
I think I remember seeing the answers on a webinar which is posted youtube. Dont remember which one ha.search buzztouch webinar on YouTube
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
06/01/14 09:17 PM (10 years ago)
Is the content going to be the same in all the apps? If so, put the same config file (and dataURL) in all of them.
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
06/01/14 09:20 PM (10 years ago)
My App(s) are Maps. Each will be the same shell of layout and menus, different config.txt files with address info (USA, Europe, UK, SoAmerica, Asia...). I'm just concerned about the core properties for the IDs: Application Id, Control Panel Id / Password "Every application in the control panel uses it's own unique id and Control Panel id / password when making requests to this software for data. There may be PHP scripts in the software that power individual screens. Example: Maps that pull locations from the software's database. If these scripts use data provided by this software, they will need to know what id / secret to authenticate with. These values are provided here for reference."
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
06/01/14 10:09 PM (10 years ago)
In your case, use the same IDs and password across all the apps. Your PHP is the one that decides which unique content to serve to the various mobile apps. That unique content has to be selected or served by the PHP for data and for images and for other files. Ensure your PHP gets that unique mobile request for App-specific data, then all is well in Nicks land. :-) Any relation to Stevie? -- Niraj
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
06/01/14 10:10 PM (10 years ago)
We're both Welsh. I'm only 50%, though.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
06/01/14 10:14 PM (10 years ago)
Remember to tell us about your apps when you've got them published -- Pob lwc!
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
06/01/14 10:14 PM (10 years ago)
I wish I could include screen caps in these replies.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
06/01/14 11:40 PM (10 years ago)
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
06/02/14 09:53 AM (10 years ago)
I'm hopeful Susan will be able to engage on this.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.