public string GetDesktopApplet(ContactServiceApplet service, string userId = "", string echo = "") { UserId = userId; Echo = echo; var response = CSAppletResponse.AppletResponse(service, Format, userId, echo); return(new Uri(response.url).AppletTemlate(response.import_id)); }
public static CSResponse AppletResponse(ContactServiceApplet service, string format, string userId, string echo) { string desktopRoot = string.Format("{0}desktop_applet.{1}", CloudSponge.BeginImportRoot, format); string desktopFormat = string.Format("{0}?service={{0}}&user_id={{1}}&echo={{2}}", desktopRoot); string uri = string.Format(desktopFormat, service, userId, echo); return(new Uri(uri).GetResponse <CSResponse>(CloudSponge.DomainKey, CloudSponge.DomainPassword)); }