PrestaShop - Login programmatically

  • Profile Image
    Johnmike12
    Asked on January 31, 2017 at 09:56 AM

    I am writing a android and windows native app. The native app stores the login details as reated for mulitple other web apps, and logs them into this when browsing to them from the native app.

    one of the buttons in my app open a prestashop site for a authenticated user. How can i set the username and password and log that user in to the site programmitcally, giving the illusion and user experience that he has been seemlessly authenticated and accessed to his shop.

  • Profile Image
    ashwin_d
    Answered on January 31, 2017 at 11:29 AM

    Hello Johnmike12,

    I am not sure if I have understood your question correctly. Do you mean to say that you want to programmatically login to PrestaShop account? 

    I believe you can use PrestaShop API to authenticate users. I did check and found that PrestaShop does have REST webservice. You may like to take a look at their API guide by clicking on the following URL:  http://doc.prestashop.com/display/PS14/Using+the+REST+webservice

     

    Thank you!