How do I log in to my Concrete5 website from a PhoneGap app?
Permalink 1 user found helpful
I'm planning to build a PhoneGap app so my users can take pictures and upload them to my C5 site. I'd like the pictures to be linked to the current user ID, which is why I'd like for my users to log in on the site first. Can I do this with some ajax call? IE ask the user for their username and password, try to login with an ajax call and retrieve their userID?
Thanks.
Thanks.
Actually I reckon this is still a concrete5 related question, as it's sort of asking if concrete5 has any REST/JSON/whatever interfaces available for performing tasks like authentication.
I've actually had a similar sort of thought before, to create an app (but a desktop one) that handles the resizing and uploading of images in bulk. I realied it would be pretty tricky though as there's no (to my knowledge) way to perform such tasks without using the web interface.
I can envisage some nice ways to get some data _from_ a concrete5 site to a phone app (using JSON, etc), but I'd be keen to hear from others about interacting with a site in more complex ways.
I know Mr Strat has released this -https://github.com/goradiantweb/radiantweb_api...
But I've not explored it myself.
I've actually had a similar sort of thought before, to create an app (but a desktop one) that handles the resizing and uploading of images in bulk. I realied it would be pretty tricky though as there's no (to my knowledge) way to perform such tasks without using the web interface.
I can envisage some nice ways to get some data _from_ a concrete5 site to a phone app (using JSON, etc), but I'd be keen to hear from others about interacting with a site in more complex ways.
I know Mr Strat has released this -https://github.com/goradiantweb/radiantweb_api...
But I've not explored it myself.
That GitHub project from Mr Strat looks really interesting, thanks for pointing me in that direction mesuva. I'll have to take a closer look at it.
@Mesuva Yes indeed you're right, I forgot he needed at least a tool or a model to bridge between the js and C5 helpers.
On a totally different topic, Mesuva I love your blog. Really one of the best ones for C5
On a totally different topic, Mesuva I love your blog. Really one of the best ones for C5
This is really more a phonegap question than a Concrete5 question.
C5 is a set of php scripts. Phonegap uses javascript and so can interact with any php script.
The how is a phonegap question.