OAuth Retailer Flow
GET
http://login.whisk.com/retailers/oauth/v2/authorize
Path Parameters
Name | Type | Description |
---|---|---|
retailer* | string | Retailer graph id or name |
redirect_uri* | string | Url to redirect user after authorization |
Some retailers (e.g., Kroger) use OAuth to grant access for checkout. Whisk provides uniform OAuth flow for these retailers:
Your application navigates the user to Whisk's authorization endpoint, passing
retailer
andredirect_uri
query parameters e.g.,http://login.whisk.com/retailers/oauth/v2/authorize?retailer=kroger&redirect_uri=http://example.com/oauth/callback
Whisk redirects user to the retailer login page, where they prompt their credentials
User is redirected to the callback url passed in
redirect_uri
query parameter withtoken
parameter appended, e.g.,http://example.com/oauth/callback?token=d0a2bb8e24b54bb9a3a17f039070ac0f
Now
token
can be used to perform checkout
Last updated