C# OAuth Implementation
AAAARRRRGGGHHH!!
I had to get that out of my system. I’m not familiar enough with the exact specification of OAuth to know whether it’s Yahoo or Yedda that can’t read a spec, but the Yedda implementation of OAuth available on Google Code, doesn’t even begin to work with Yahoo’s YQL API. Futhermore, the Yedda implementation is bloated and hard to follow. Why is it that so many programmers feel the need to over complicate EVEYRTHING.
So… Here’s my rewrite of the Yedda implemenation. It works out-of-the-box. There are no objects to instantiate, just 4 very simple static methods to use. A word of caution, System.Net.WebClient cannot be used to talk to Yahoo.
Update (1/29/2010): See a complete working example of C# / OAuth / Yahoo YQL.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Security.Cryptography;
using System.Text;
namespace WAN.Lib {
public static class OAuth {
private static Random… Read More →