in Scripts/Editor/WitTexts.cs [144:175]
public static string GetAppURL(string appId, WitAppEndpointType endpointType)
{
// Return apps url without id
string url = WitUrl + Texts.WitAppsUrl;
if (string.IsNullOrEmpty(appId))
{
return url;
}
// Determine endpoint
string endpoint;
switch (endpointType)
{
case WitAppEndpointType.Understanding:
endpoint = Texts.WitAppUnderstandingEndpoint;
break;
case WitAppEndpointType.Settings:
endpoint = Texts.WitAppSettingsEndpoint;
break;
default:
endpoint = Texts.WitAppSettingsEndpoint;
break;
}
// Ensure endpoint is set
if (string.IsNullOrEmpty(endpoint))
{
return url;
}
// Replace app id key with desired app id
endpoint = endpoint.Replace("[APP_ID]", appId);
// Return full url
return url + endpoint;
}