本文整理汇总了C#中GlobusTwitterLib.Authentication.oAuthTwitter.UrlEncode方法的典型用法代码示例。如果您正苦于以下问题:C# oAuthTwitter.UrlEncode方法的具体用法?C# oAuthTwitter.UrlEncode怎么用?C# oAuthTwitter.UrlEncode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GlobusTwitterLib.Authentication.oAuthTwitter
的用法示例。
在下文中一共展示了oAuthTwitter.UrlEncode方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: UpdateStatus
/// <summary>
/// This Method Will Update Tweets On Twitter Using OAUTH
/// </summary>
/// <param name="oAuth">OAuth Keys Token, TokenSecret, ConsumerKey, ConsumerSecret</param>
/// <param name="StatusText">Status Messages</param>
/// <returns>Return Xml Text Of Details</returns>
public XmlDocument UpdateStatus(oAuthTwitter oAuth, string StatusText)
{
string RequestUrl = Globals.UpdateStatusUrl + "?status=";
string response = oAuth.oAuthWebRequest(oAuthTwitter.Method.POST, RequestUrl, oAuth.UrlEncode(StatusText));
xmlResult.Load(new StringReader(response));
return xmlResult;
}
示例2: SendDirectMessage
/// <summary>
/// This Method is Depricated. Please Use "Post_Direct_Messages_New(oAuth,text)" instead.
/// This will Send DirectMessage to the User
/// </summary>
/// <param name="User">Twitter UserName Password</param>
/// <param name="DirectMessage">DirectMessage</param>
/// <param name="UserId">USerId Whom You Want to Send Direct Message</param>
/// <returns></returns>
public XmlDocument SendDirectMessage(oAuthTwitter OAuth, string DirectMessage, int UserId)
{
string RequestUrl = Globals.NewDirectMessage + "?user_id=" + UserId + "&text=";
string response = OAuth.oAuthWebRequest(oAuthTwitter.Method.POST, RequestUrl, OAuth.UrlEncode(DirectMessage));//twtWebReq.PerformWebRequest(User, RequestUrl, "Post", true, "");
xmlResult.Load(new StringReader(response));
return xmlResult;
}