public string GetAuthUri(string sessionId) { try { var uri = this.EbayServiceLowLevel.GetAuthenticationUri(sessionId); return(uri.AbsoluteUri); } catch (Exception exception) { var ebayException = new EbayAuthException(string.Format("Error. Was called with({0})", sessionId), exception); LogTraceException(ebayException.Message, ebayException); throw ebayException; } }
public string FetchUserToken(string sessionId) { var mark = new Guid().ToString(); try { var userToken = this.EbayServiceLowLevel.FetchToken(sessionId, mark); return(userToken); } catch (Exception exception) { var ebayException = new EbayAuthException(string.Format("Error. Was called with({0})", sessionId), exception); LogTraceException(ebayException.Message, ebayException); throw ebayException; } }
public string GetUserSessionId() { var mark = new Guid().ToString(); try { var sessionId = this.EbayServiceLowLevel.GetSessionId(mark); return(sessionId); } catch (Exception exception) { var ebayException = new EbayAuthException(string.Format("Error. Was called with()"), exception); LogTraceException(ebayException.Message, ebayException); throw ebayException; } }