public static string GetRequestURI(string apiCall, bool authParams = false, params string[] parameters) { string requestURI = $"{Endpoint}/{apiCall}Json"; if (authParams) { string sessionId = APISession.GetSessionId(); requestURI += $"/{Credentials.DevId}"; requestURI += $"/{GetSignature(apiCall)}"; requestURI += $"/{sessionId}"; requestURI += $"/{APISession.GetSessionTimestamp()}"; } foreach (var p in parameters) { requestURI += $"/{p}"; } return(requestURI); }