使用PrestaShop Web服务API登录客户帐户

huangapple go评论87阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年7月18日 03:44:16
  • 转载请务必保留本文链接:https://go.coder-hub.com/76707653.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定