问题描述
我使用firefox的rest client插件将以下标题信息传递到网址 localhost / magento / api / rest / customers ,
我是通过以下标题信息:
消费键:olnnqgwm7gm75rtbft8w1wac4kp4vwig
消费者的秘密:u9v6bdlpuopdlryc6vx0yjnslkj4vllo
访问令牌:null
访问令牌密钥:null
/ p>
< magento_api>
< messages>
< error>
< data_item>
< code> 401< / code>
< message>
oauth_problem = parameter_absent& oauth_parameters_absent = oauth_token
< / message>
< / data_item>
< / error>
< / messages>
< / magento_api>
所以这里我想获得访问令牌
$ 访问令牌:null
访问令牌密钥:null
这是通过REST Api获取客户详细信息的必填项。您必须配置的认证过程,这里定义,请通过
- 获取未授权请求令牌
2.使用者授权
访问令牌
如果您完成上述所有步骤,您将获得可用于获取客户回复的访问令牌和密码
i am passing following header information using "rest client" plugin of firefox to the url "localhost/magento/api/rest/customers",
i am pass following header information:
Consumer key :olnnqgwm7gm75rtbft8w1wac4kp4vwig
Consumer secret:u9v6bdlpuopdlryc6vx0yjnslkj4vllo
Access token : null
Access token secret : null
i will give following response:
<magento_api>
<messages>
<error>
<data_item>
<code>401</code>
<message>
oauth_problem=parameter_absent&oauth_parameters_absent=oauth_token
</message>
</data_item>
</error>
</messages>
</magento_api>
so here i want to get Access token and Access token secret how to get it?
Access token : null
Access token secret : null
This is mandatory for getting the details of customer through REST Api. You have to configure the authentication process as defined here, please go through the article and you will get your answer.
- Getting an Unauthorized Request Token
2.User Authorization
3.Getting an Access Token
If you complete all the above steps you will get the Access token and secret which can be used for getting customer response
这篇关于magento api不为客户工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!