Netferrets Online Blog, Internet Related Programming Solutions, Created in C# .net, VB .net, MS SQL Server Javascript, HTML and CSS. Proving sample solutions to problems found when creating web application solutions.
Sunday, 14 July 2013
Umbraco Extensionless URL's
Wednesday, 15 May 2013
Twitter API 1.1 oAuth - Cut the crap and get it working :D
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TwitterTest;
namespace TwitterControl
{
public partial class TwitterControl : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
// Setup Request
Twitter.ScreenName = "Test"; // This can be any twitter account
Twitter.Count = 20;
// These can be found in your developers seciton of twitter dev.twitter.com and in your applications
Twitter.oAuthConsumerKey = "";
Twitter.oAuthConsumerSecret = "";
Twitter.oAuth_token = "";
// Generate Random Base 64 Code
Twitter.oAuth_nonce = Twitter.generateNonce();
// Signature Method
Twitter.oAuth_signature_method = "HMAC-SHA1";
// Timestamp
Twitter.oAuth_timestamp = DateTime.Now.ToString();
// API Version
Twitter.oAuth_version = "1.1";
twitterRepeater.DataSource = Twitter.RetrieveTweets();
twitterRepeater.DataBind();
}
}
}