You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ZendeskApi implementation can handle a variety of inputs for 'yourZendeskURL' and will transform the url.
For example, "contoso", "contoso.zendesk.com", "http://contoso.zendesk.com" etc will all work, the input is transformed into "https://contoso.zendesk.com/api/v2/".
However, the Core base class (used as the base class for HelpCenterApi amongst others) is less forgiving, at a first glance it only adds the trailing slash but nothing else.
The text was updated successfully, but these errors were encountered:
I looked at the example.cs as documentation on how to use the library
string userName = "[email protected]"; // the user that will be logging in the API aka the call center staff
string userPassword = "&H3n!0q^3OjDLdm";
string companySubDomain = "csharpapi"; // sub-domain for the account with Zendesk
int pageSize = 5;
var api = new ZendeskApi(companySubDomain, userName, userPassword);
However, when one cannot use the HelpCenterApi in the same way...
string userName = "[email protected]"; // the user that will be logging in the API aka the call center staff
string userPassword = "&H3n!0q^3OjDLdm";
string companySubDomain = "csharpapi"; // sub-domain for the account with Zendesk
int pageSize = 5;
var api = new HelpCenterApi(companySubDomain, userName, userPassword, null, null, null);
I'm suggesting to refactor the HelpCenterApi to accept the same values for 'companySubDomain' as the normal ZendeskApi would:
Currently, only the 4th option works, which isn't apparent at all.
mozts2005
changed the title
Core.js is less forgiving for parameter 'yourZendeskURL' than ZendeskApi.cs is
Core.cs is less forgiving for parameter 'yourZendeskURL' than ZendeskApi.cs is
Nov 21, 2017
The ZendeskApi implementation can handle a variety of inputs for 'yourZendeskURL' and will transform the url.
For example, "contoso", "contoso.zendesk.com", "http://contoso.zendesk.com" etc will all work, the input is transformed into "https://contoso.zendesk.com/api/v2/".
However, the Core base class (used as the base class for HelpCenterApi amongst others) is less forgiving, at a first glance it only adds the trailing slash but nothing else.
The text was updated successfully, but these errors were encountered: