To authenticate to Yotpo, you can use the OAuth standard to connect to your own data or to allow other users to connect to their data.
Using OAuth Authentication
To obtain you OAuth credentials, log-in to your Yotpo Account and click on the Profile icon at the top right corner of the screen, then go to 'Account Settings' > 'Store', and the Yotpo API Credentials are listed in the bottom of the tab.
After setting the following connection properties, you are ready to connect:
- AuthScheme: Set this to OAuth.
- InitiateOAuth: Set this to GETANDREFRESH. You can use InitiateOAuth to manage the process to obtain the OAuthAccessToken.
- OAuthClientId: Set this to your Yotopo App Key.
- OAuthClientSecret: Set this to your Yotpo Secret Key.
You also need to set App-Key in Other connection property. Set it to your Yotpo App Key.
Note that OAuthAccessTokens are invalidated upon logging out of the Yotpo system. As such, you need to delete OAuthSettings.txt file found in OAuthSettingsLocation in order to initiate the process of getting a new OAuthAcceeToken.
Example connection string: