【问题标题】:how can i get customer details by using access token with magento api [closed]我如何通过使用带有magento api的访问令牌来获取客户详细信息[关闭]
【发布时间】:2013-01-09 18:10:53
【问题描述】:

我正在使用Magento REST authentication api,因为我正在获取访问令牌和密钥

通过使用此访问令牌,我需要获取客户 ID 和客户详细信息。

首先,我如何获取客户详细信息,例如客户 ID、客户名称等。

【问题讨论】:

  • 你用谷歌搜索过magento api customer details吗?
  • 是的。我已经用谷歌搜索了,但没有运气。有 api 来获取所有客户详细信息,但我需要登录 customerID。
  • 我认为您必须使用仅返回客户 ID 的“客户用户类型”
  • “CustomerUserType”请描述@chanz

标签: api magento access-token


【解决方案1】:

获取客户详细信息使用

 http://magentohost/api/rest/customers

获取特定 id 的客户是

http://magentohost/api/rest/customers/:customerId

更多信息请查看Here

【讨论】:

  • 如何通过访问令牌获取customerID?
  • 您只想获取特定客户的 id...而magentohost/api/rest/customers 还返回 id 以及其他详细信息...
  • Chanz,如何使用此访问令牌找到已登录客户的“CustomerID”?此访问令牌属于“登录客户”
  • 好的,我明白了...postimage.org/image/a65drv29x 这里我使用客户类型角色并通过电子邮件返回客户的 id ogf.. 可以吗
  • 似乎是正确的。我可以知道要调用的 Web 服务方法吗?
猜你喜欢
  • 2020-04-05
  • 1970-01-01
  • 1970-01-01
  • 2016-05-05
  • 1970-01-01
  • 2015-02-27
  • 2017-07-08
  • 2018-08-12
  • 1970-01-01
相关资源
最近更新 更多