Generating tokens to use REST service:
Step 1: To get token, Access below REST service with JSON
content mention as below
Content to Send:
{
"logonId"
: "abc@gmail.com",
"logonPassword" : "password"
}
Step 2: In response to above request you will get WCToken
and WCTrustedToken which you need to send to further request to access
rest of the APIs.
e.g.
{
"WCToken":
"74022%2C7Vc3U%2B7zdArch8iwDFNsSnBJ0odKFI4wkb19WwiWLIwK1tfO%2B4X4tptjpXYoMlHAxtn1iojIdpFj4TUmFV5NGX%2BoxEB1EobxP87w1hm1Sp6Q8adx8pnUVH0UDljzfs5k2FhDroNrcE0K%2F7EpEjEAlLyzT13bBce4af%2BERKPpnDMxxJvc%2Bt8jBR4JfALSnJy6iJ2MVL3vAdwyOvgijRQia6Rs4MWUgIqkzZbuMczAmWU%3D",
"userId": "74022",
"personalizationID":
"1494826057535-7",
"WCTrustedToken":
"74022%2C%2BB50W0QUpH426rBLfEmg0CD4GpotVzeIvRetPHtY55M%3D",
"addressId":
"27614181409"
}
No comments:
Post a Comment