OAuth in C# as a client
        Posted  
        
            by Redth
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Redth
        
        
        
        Published on 2010-05-12T19:20:58Z
        Indexed on 
            2010/05/12
            19:24 UTC
        
        
        Read the original article
        Hit count: 907
        
Hi,
I've been given 6 bits of information to access some data from a website:
- Website Json Url (eg: http://somesite.com/items/list.json)
- OAuth Authorization Url (eg: http://somesite.com/oauth/authorization)
- OAuth Request Url (eg: http://somesite.com/oauth/request)
- OAuth Access Url (eg: http://somesite.com/oauth/access)
- Client Key (eg: 12345678)
- Client Secret (eg: abcdefghijklmnop)
Now, I've looked at DotNetOpenAuth and OAuth.NET libraries, and while I'm sure they are very capable of doing what I need, I just can't figure out how to use either in this way.
Could someone post some sample code of how to consume the Url (Point 1.) in either library (or any other way that may work just as well)?
Thanks!
© Stack Overflow or respective owner