-
Notifications
You must be signed in to change notification settings - Fork 0
BVSDK UserAuthentication
Both the BVAdvertising and BVRecommendations modules support adding an authenticated user for shopper profile matching.
Once a user is authenticated inside your user login workflow, the user authentication token can be set via BVSDKManager#setUserWithAuthString()
.
NOTE: The authentication token created with your existing Bazaarvoice implementation logic needs to be provided to the BVSDKManager
. However, the steps to encrypt your authentication token are still applicable even if you are not a Conversations client.
The user auth string is an encrypted query string. In the documentation above, date=20070527&userid=ID12345
is used as an example. This is then encrypted/signed appropriately, for security. You should add information (such as identity, demographics) in this query string, for example: date=20070527&userid=ID12345&facebookId=abc123&age=28&gender=female
. Allowed keys (userid, gender, age, etc) are defined in BVAuthenticatedUser.h
This information can then be safely passed like the examples below:
This profile below interested in "pets", "powersports", "gamefish" and others. See the Contextual Interests section below for further explanation.
Objective-C
[[BVSDKManager sharedInstance] setUserWithAuthString:@"aa05cf391c8d4738efb4d05f7b2ad7ce7573657269643d4f6d6e694368616e6e656c50726f66696c65313226656d61696c3d6a61736f6e406a61736f6e2e636f6d"];
Swift
BVSDKManager.sharedInstance().setUserWithAuthString("aa05cf391c8d4738efb4d05f7b2ad7ce7573657269643d4f6d6e694368616e6e656c50726f66696c65313226656d61696c3d6a61736f6e406a61736f6e2e636f6d")
Once setAuthenticatedUser
has been called from the BVSDKManager
, Bazaarvoice's back-end systems will begin matching data to this user's profile. This process is near real-time, but not instant. The SDK will poll to update the user profile and should reflect the user's interests within seconds.
Copyright 2016 Bazaarvoice Inc. All rights reserved.
Use of this SDK is contingent on your agreement and conformance with Bazaarvoice's API Terms of Use. Additionally, you agree to store all data acquired by this SDK or Bazaarvoice’s API only within the storage of the individual application instance using the SDK or API. You also agree to use the data acquired by the SDK or API only within the context of the same individual application instance and only for purposes consistent with that application’s purpose. Except as otherwise noted, the Bazaarvoice iOS SDK licensed under the Apache License, Version 2.0.