public CSResponse GetConsent(ContactServiceConsent service, string userId = "", string echo = "") { UserId = userId; Echo = echo; return(CSResponse.ConsentResponse(service, Format, userId, echo)); }
public static CSResponse ConsentResponse(ContactServiceConsent service, string format, string userId, string echo) { string consentRoot = string.Format("{0}user_consent.{1}", CloudSponge.BeginImportRoot, format); string consentFormat = string.Format("{0}?service={{0}}&user_id={{1}}&echo={{2}}", consentRoot); string uri = string.Format(consentFormat, service, userId, echo); return(new Uri(uri).GetResponse <CSResponse>(CloudSponge.DomainKey, CloudSponge.DomainPassword)); }