|
Nov 17 2008, 3:35 AM EST
|
|
|
edit |
16 words added
2 words deleted
|
|
Change: Note: You may also download a fully functional Wetpaint Injected Custom Server Control fromcreated by Webhun. Visit Webhun's Injected Web Control Tutorial for more info.In the first part of the custom WebControl class we declare the
View changes from previous version.
(Word count: 849)
|
|
Nov 17 2008, 3:10 AM EST
|
|
|
edit |
4 words added
1 word deleted
|
|
Change: Wetpaint Injected Custom Server Control from Webhun.In the first part of the custom WebControl class we declare the sum of the properties needed for login and the getCell call, this way we can encapsulate the entire integration sequence using this one component: [Bindable(true)] [Category("UserGeneratedContent")][
View changes from previous version.
(Word count: 834)
|
|
Nov 17 2008, 3:09 AM EST
|
|
|
edit |
|
|
Change: There were only format changes (bold, italics, etc.) in this version. See this version for details.
(Word count: 831)
|
|
Nov 17 2008, 3:06 AM EST
|
|
|
edit |
9 words added
|
|
Change: Download a completed Custom Server Control from Webhun.In the first part of the custom WebControl class we declare the sum of the properties needed for login and the getCell call, this way we can encapsulate the entire integration sequence using this one component: [Bindable(true)] [Category("UserGeneratedContent")]
View changes from previous version.
(Word count: 831)
|
|
May 14 2008, 1:44 AM EDT
|
|
|
revert |
16 words added
16 words deleted
|
|
Change: republished the May 13 2008, 2:41 PM EDT version by May 14 2008, 1:44 AM EDT
|
|
May 13 2008, 6:00 PM EDT
|
|
|
revert |
16 words added
16 words deleted
|
|
Change: republished the May 2 2008, 2:11 PM EDT version by May 13 2008, 6:00 PM EDT
|
|
May 13 2008, 2:41 PM EDT
|
|
|
edit |
16 words added
16 words deleted
|
|
Change: new UTF8Encoding();hmacSha.ComputeHash(encoding.GetBytes(sigString)); byte[] sigHash = sha.ComputeHash(encoding.GetBytes(sigString)); string encodedSigString = GetAsHexaDecimal(sigHash);string url = hostName + "/UserService/login.do";string data = "key=" + developerKey + "&ns=" + contentNamespace + "&output=api&user.userId=" +userId + "&user.email=" + userEmail + "&user.emailOptIn=" +userEmailOptIn + "&cred.ts=" + unixTime + "&cred.sig=" + encodedSigString +"&user.profileUrl="
View changes from previous version.
(Word count: 823)
|
|
May 2 2008, 2:11 PM EDT
|
|
|
edit |
8 words added
|
|
Change: Data for testing login is available here. The ensureLogin method checks the user session for a Wetpaint ticket. If the ticket is present in the session, it is
View changes from previous version.
(Word count: 815)
|
|
May 2 2008, 2:08 PM EDT
|
|
|
edit |
1 word added
1 word deleted
|
|
Change: "/WikiService/""/CellService/" +"getCell.do?key=" + DeveloperKey + "&ns=" + ContentNamespace +"&cell.cellId=" + ID + "&output=html";HttpWebRequest request = (HttpWebRequest)WebRequest.CreateDefault(uri);request.Method = "GET";HttpWebResponse response = (HttpWebResponse)request.GetResponse();StreamReader reader = new StreamReader(response.GetResponseStream());return reader.ReadToEnd();} As you can see, to
View changes from previous version.
(Word count: 808)
|
|
Apr 29 2008, 5:57 PM EDT
|
|
|
edit |
1 word added
2 words deleted
|
|
Change: threwassembled together an example in C# to use as a reference.In the first part of the custom WebControl class we declare the sum of the properties needed for login and the getCell call, this way we can encapsulate the entire integration sequence using this one component:[Bindable(true)]
View changes from previous version.
(Word count: 808)
|
|
Apr 18 2008, 1:42 PM EDT
|
|
|
move |
No content added or deleted. |
|
Change: Moved by Apr 18 2008, 1:42 PM EDT
|
|
Apr 11 2008, 1:07 PM EDT
|
|
|
edit |
2 words added
1 word deleted
|
|
Change: byte array to hexadecimal string, be aware that .NET produces an array of unsigned bytes from the ComputeHash method. Java uses signed bytes (we use Java
View changes from previous version.
(Word count: 809)
|
|
Apr 11 2008, 1:04 PM EDT
|
|
|
edit |
61 words added
|
|
Change: Warning: When converting the sha1 hash from byte[] to hexadecimal string, be aware that .NET produces an array of unsigned bytes from the ComputeHash method.
View changes from previous version.
(Word count: 808)
|
|
Apr 11 2008, 4:05 AM EDT
|
|
|
edit |
|
|
Change: There were only format changes (bold, italics, etc.) in this version. See this version for details.
(Word count: 746)
|
|
Apr 11 2008, 4:01 AM EDT
|
|
|
edit |
9 words deleted
|
|
Change: //url = HttpUtility.UrlEncode(url); Uri uri = new Uri(url);HttpWebRequest request = (HttpWebRequest)WebRequest.CreateDefault(uri);request.Method = "GET";HttpWebResponse response = (HttpWebResponse)request.GetResponse();StreamReader reader = new StreamReader(response.GetResponseStream());return reader.ReadToEnd();} As you can see, to render the contents we
View changes from previous version.
(Word count: 746)
|
|
Apr 11 2008, 3:51 AM EDT
|
|
|
edit |
|
|
Change: There were only format changes (bold, italics, etc.) in this version. See this version for details.
(Word count: 755)
|
|
Apr 11 2008, 3:49 AM EDT
|
|
|
edit |
|
|
Change: There were only format changes (bold, italics, etc.) in this version. See this version for details.
(Word count: 755)
|
|
Apr 11 2008, 2:12 AM EDT
|
|
|
edit |
54 words added
|
|
Change: The ensureLogin method checks the user session for a Wetpaint ticket. If the ticket is present in the session, it is returned. If the ticket
View changes from previous version.
(Word count: 755)
|
|
Apr 11 2008, 2:09 AM EDT
|
|
|
edit |
3 words added
12 words deleted
|
|
Change: sure we've logged the current user into Wetpaint and then make an HTTP request to retrieve the html for the cell. The login functionality called from OnPreRender is broken out into a helper class: namespace Wetpaint_ToGo{ public class LoginManager { private static String WetpaintTicket = "WetpaintTogoTicket"; public static
View changes from previous version.
(Word count: 701)
|
|
Apr 11 2008, 2:08 AM EDT
|
|
|
edit |
10 words added
27 words deleted
|
|
Change: .ensureLogin(WetpaintApiHost, UserEmail, UserId,UserUrl, UserEmailOptIn, UserDisplayName,DeveloperKey, DeveloperSecret, ContentNamespace, ID);output.Write(renderWetpaintContent());}catch ((ExceptionException e){output.Write(e.Message);}} private String renderWetpaintContent(){String url = WetpaintApiHost + "/WikiService/" + "getCell.do?key=""getCell.do?key=" + DeveloperKey + "&ns=" + ContentNamespace + "&cell.cellId=""&cell.cellId=" + ID + "&output=html";//url
View changes from previous version.
(Word count: 711)
|