Can Anyone please help with this i was checking from the site itself
the code is like this
Dim OAuthBase As New OAuth.OAuthBase Dim objStreamReader As System.IO.StreamReader = Nothing Dim objStream As System.IO.Stream = Nothing Dim strResult As String Dim strTokenSecret As String Dim strToken As String
'step 1 in Oauth is to get a request token. The OAUTHConsumerKey and OAUTHConsumerSecret must be your own. If you don't already have one, 'go to https://developer.apps.yahoo.com/dashboard/createKey.html and sign up for one. 'Then update the web config with your OAUTHConsumerKey and OAUTHConsumerSecret 'Also, it is really important that you specify the correct application url when signing up. Yahoo! will not allow oauth_callback to a domain that is different from your application url domain. 'Make sure you update the OAUTHCallbackURL to whatever domain you created your key with plus /auth.aspx (e.g., http://my.domain.com/auth.aspx) 'Also, please be sure that when you set up your key that you ask for read/write access to Yahoo! Mail and Yahoo! Contacts. If you don't then your credentials 'won't work for this example.
Dim strRequest As String = System.Configuration.ConfigurationManager.AppSettings("OAUTHGetRequestTokenURL") & _ "oauth_nonce=" & OAuthBase.GenerateNonce & _ "&oauth_timestamp=" & OAuthBase.GenerateTimeStamp & _ "&oauth_consumer_key=" & System.Configuration.ConfigurationManager.AppSettings("OAUTHConsumerKey") & _ "&oauth_signature_method=plaintext" & _ "&oauth_signature=" & System.Configuration.ConfigurationManager.AppSettings("OAUTHConsumerSecret") & "%26" & _ "&oauth_version=1.0" & _ "&oauth_callback=" & UrlEncode(System.Configuration.ConfigurationManager.AppSettings("OAUTHCallbackURL")) 'this variable indcates the url that the user will be redirected to after authenticating
'all we are doing here is creating an http get and passing in our oauth variables to get a request token Dim objHTTPRequest As HttpWebRequest Dim objHTTPResponse As HttpWebResponse
'now we actually redirect the user to the auth token url. This is the page hosted by yahoo that will ask the user to enter their password and confirm they want to link their account. strRequest = System.Configuration.ConfigurationManager.AppSettings("OAUTHGetRequestAuthURL") & "oauth_token=" & strToken Response.Redirect(strRequest)