content management system - magento api not working for customers -


i passing following header information using "rest client" plugin of firefox url "localhost/magento/api/rest/customers",

i pass following header information:

consumer key :olnnqgwm7gm75rtbft8w1wac4kp4vwig  consumer secret:u9v6bdlpuopdlryc6vx0yjnslkj4vllo  access token : null  access token secret : null 

i 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 want access token , access token secret how it?

access token : null access token secret : null  

this mandatory getting details of customer through rest api. have configure authentication process defined here, please go through article , answer.

  1. getting unauthorized request token

uri localhost/magento/oauth/initiate

method: post

return: sample response: oauth_token=4cqw0r7vo0s5goyyqnjb72sqj3vxwr0h&oauth_token_secret=rig3x3j5a9z5j6d4ubjwyf9f1l21itrr&oauth_callback_confirmed=true

2.user authorization

uri: localhost/magento/oauth/authorize

method: get

sample response: /callback?oauth_token=tz2kmxyf3lagl3o95xnox9ia15k6mpt3&oauth_verifier=cbwwh03alr5huiz5c76wi4l21zf05eb0

note:the second step of authentication. without user authorization in step, impossible application obtain access token.

3.getting access token

uri: localhost/magento/oauth/token

method: post

sample response: oauth_token=0lnuajnuzeei2o8xcddii5us77xnb6v0&oauth_token_secret=1c6d2hycnir5ygf39fycs6zhtaagx8pd

if complete above steps access token , secret can used getting customer response


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -