Upgrading from 2.x to 3.x
Important
Helpshift’s Legacy SDKs (SDK Version <=7.x.x) reached their end of life on 31 Dec 2022, and end of support on 31 March 2023. Please upgrade to the Latest SDKif you haven't already.
Upgrading from 2.x to 3.x
The Helpshift SDK v3.x is a major update and we have deprecated some APIs. If you have questions or feedback, please Contact Us
Note
Please replace all the old files with new files.
List of deprecated APIs
Deprecated API | New API | |||
---|---|---|---|---|
HelpshiftCore#SetNameAndEmail(string name, string email) | HelpshiftCore#Login(HelpshiftUser user) | |||
HelpshiftSupport#SetUserIdentifier(string userIdentifier) | HelpshiftCore#Login(HelpshiftUser user) | |||
HelpshiftCore#Login(String userId, String name, String email) | HelpshiftCore#Login(HelpshiftUser user) | |||
HelpshiftCore.Install(string apiKey, string domainName, string appId, Dictionary<string, object> installConfig) | HelpshiftCore.Install(string apiKey, string domainName, string appId, HelpshiftInstallConfig config) | |||
HelpshiftSupport.ShowFAQs(Object uiParent, Dictionary<string, object> apiConfig) | HelpshiftSupport.ShowFAQs(Object uiParent, HelpshiftAPIConfig config) | |||
HelpshiftSupport.ShowFAQSection(string sectionId, Object uiParent, Dictionary<string, object> apiConfig) | HelpshiftSupport.ShowFAQSection(string sectionId, Object uiParent, HelpshiftAPIConfig config) | |||
HelpshiftSupport.ShowConversation(Object uiParent, Dictionary<string, object> apiConfig) | HelpshiftSupport.ShowConversation(Object uiParent, HelpshiftAPIConfig config) | |||
HelpshiftSupport.ShowSingleFAQ(string faqId, Object uiParent, Dictionary<string, object> apiConfig) | HelpshiftSupport.ShowSingleFAQ(string faqId, Object uiParent, HelpshiftAPIConfig config) | |||
HelpshiftSupport.GetNotificationCount(bool isAsync) | HelpshiftSupport.RequestUnreadMessagesCount(bool isRemote) | |||
HelpshiftSupport.SetSDKLanguage(string locale) | HelpshiftCore.SetLanguage(string languageCode) | |||
HelpshiftSupport.ShowDynamicForm(Object uiParent, string title, Dictionary<string, object>[] flows) | HelpshiftSupport.ShowDynamicForm(Object uiParent, string title, IList<Flow> flows, HelpshiftAPIConfig config) | HelpshiftSupport.SetMetaData(Dictionary<string, object> metaData) | HelpshiftSupport.SetMetadata(HelpshiftSupportMetadata metadata) | |
HelpshiftSupport.IsConversationActive() | HelpshiftSupport.CheckIfConversationActive() | |||
HelpshiftCampaigns.ShowInbox(Object uiParent, Dictionary<string, string> apiConfig) | HelpshiftCampaigns.ShowInbox(Object uiParent, HelpshiftAPIConfig config) |
List of Removed APIs
Removed API | New API |
---|---|
InternalHsApiDefinition.IHelpshiftInboxMessage | InboxMessage |
HelpshiftInbox.SetInboxMessageDelegate(InternalHsApiDefinition.HelpshiftInboxDelegate delegate) | HelpshiftInbox.SetInboxMessageDelegate(IInboxMessageDelegate delegate); |
HelpshiftCampaigns.SetInboxMessageDelegate(InternalHsApiDefinition.HelpshiftInboxDelegate delegate) | HelpshiftCampaigns.SetInboxMessageDelegate(IInboxMessageDelegate delegate); |
HelpshiftInbox.SetInboxNotificationDelegate(InternalHsApiDefinition.HelpshiftInboxNotificationDelegate delegate); | HelpshiftInbox.SetInboxNotificationDelegate(IInboxNotificationDelegate delegate); |
HelpshiftCampaigns.SetCampaignsDelegate(InternalHsApiDefinition.HelpshiftCampaignsDelegate); | HelpshiftCampaigns.SetCampaignsDelegate(ICampaignsDelegate delegate); |
HelpshiftSupport.SetDelegate(InternalHsApiDefinition.HelpshiftSupportDelegate delegate); | HelpshiftSupport.SetDelegate(ISupportDelegate delegate); |
Logging in users
You can login your users using the new Login API.
Note
- Users will be able to continue speaking on an open issue only if you were using the Login API. If you were using setUserIdentifier (now deprecated), if the user has an open Issue, using the login API will result in the creation of a new Issue. However, the previous Issue will be available to Agents under 'Other Issues'
Setting Name and email
It is expected that you will pass the user's name, email using the Login API.
Setting User Identifier
It is expected that you will pass the user identifier using the Login API.