英文:
Login to customer account with PrestaShop Webservice API
问题
我正在将PrestaShop与React应用程序集成,并且需要以编程方式对客户进行身份验证并获取他们的身份验证令牌。
是否可以使用PrestaShop Webservice API登录客户帐户并获取身份验证令牌?如果可以,我应该如何实现这一点?
我已经在研究PrestaShop Webservice API文档,但我找不到特定的端点或方法来登录客户帐户并获取身份验证令牌。
我的目标是在我的React应用程序中实现登录功能,客户可以输入他们的凭据,并在成功登录后,我可以获取身份验证令牌以代表客户执行经过身份验证的API请求。
英文:
I'm working on integrating PrestaShop with a React application, and I need to authenticate customers and obtain their authentication tokens programmatically.
Is it possible to login to a customer account using the PrestaShop Webservice API and obtain an authentication token? If so, how can I achieve this?
I've been exploring the PrestaShop Webservice API documentation, but I couldn't find a specific endpoint or method to login to a customer account and obtain an authentication token.
My goal is to implement a login functionality in my React application, where customers can enter their credentials, and upon successful login, I can obtain the authentication token to perform authenticated API requests on behalf of the customer.
答案1
得分: 0
默认API无法实现此功能。您可以考虑探索一些社区项目,例如:
https://www.binshops.com/prestashop-api
英文:
It is not possible with the default API. You may consider exploring some of the community projects, for example:
https://www.binshops.com/prestashop-api
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论