Hi all, requesting some information on how to access Walmart’s Retail-Link portal using the BOT account. We have the BOT token and are able to send the POST request with success.
Unfortunately, there is no information that i could find out on what to do next in terms of accessing the portal.
Can we pass some headers in the URL to access the UI or are there any API calls that we could leverage to interact with the portal?
Welcome to the community
how do you do it manually?
you can follow same steps with bot…if you have api those as well can be used
cheers
Hi, manually a user would have a normal account. For automation, a BOT account is created for which a token is generated to bypass MFA. Now the BOT account cannot directly login to the portal via UI as it gives error that BOT account cannot access UI.
I could not find any information on the APIs for retail link
If you want to fetch or get any details from the portal, you can use GET Method.
The GET method is used to retrieve data on a server.
Assuming you are accessing Retail link via the UI there are two ways I have found to use the bot token that way.
- Write a JavaScript function that makes the post with the token and handle the response to redirect the browser when you get it. You inject this function with your bot. The limitations are its hard to get logging functional but its quick and when it works its great.
- Use http requests and handle the session cookie they respond back with. Logging is easy with this one but handling the cookies and setting the browser session data is more work than the JavaScript way.
Hi, thanks for the reply. Quick question… lets say we do a POST using HTTP header
and insert the JS, it would return a redirect URL which ideally the BOT would open that URL which takes to login page… then this whole loop would start again.
Am i wrong in understanding?
With the JavaScript injection, the JavaScript does all the lifting. It would be doing the post and the redirect, which would then have the session logged in and bring you to the home page.
Okay, Do you have any sample script to do this?