jofuilu14 / oauth

Automatically exported from code.google.com/p/oauth
0 stars 0 forks source link

VB problem #199

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

i use the vb code from Oauth page.
It doesn't work.
i read all topic about vb and c#, try to replicate provided solution
is still not working.

Who has got a valid vb.net class code ?

Should i urlencode the result of the signature ?

result = Oauth.GenerateSignature(New Uri(url_Request_token),Key, 
Secret,,,"GET", Oauth.GenerateTimeStamp(), Oauth.GenerateNonce(),,)

result = urlencode (result) ???

thanks a lot.

Original issue reported on code.google.com by bgou...@gmail.com on 12 Apr 2011 at 7:41

GoogleCodeExporter commented 8 years ago
Or C# code.

Original comment by bgou...@gmail.com on 12 Apr 2011 at 7:52

GoogleCodeExporter commented 8 years ago
Last update

i use this code to request internet 

url = "http://www.urban-rivals.com/api/?request=5qtGceT+R1QFbxFfQ01MaaPzh84="

Dim myWebRequest As HttpWebRequest = DirectCast(HttpWebRequest.Create(url), 
HttpWebRequest)

myWebRequest.Method = "GET"

Dim myWebResponse As HttpWebResponse = DirectCast(myWebRequest.GetResponse(), 
HttpWebResponse)

myWebResponse.ResponseUri.ToString => IS IT WHERE I FIND THE ANWSER Of the 
server  ???

my signatureBase before hmac :
signatureBase = 
"GET&http%3A%2F%2Fwww%2Eurban%2Drivals%2Ecom%2Fapi%2Fauth%2Frequest%5Ftoken%2Eph
p&oauth%255Fconsumer%255Fkey%3D4be261761b90235e6a0dfade3784ab8904d954fdb%26oauth
%255Fnonce%3D7007573%26oauth%255Fsignature%255Fmethod%3DHMAC%25252DSHA1%26oauth%
255Ftimestamp%3D1302595664%26oauth%255Fversion%3D1%25252E0"

thanks

Original comment by bgou...@gmail.com on 12 Apr 2011 at 8:11