Problem found. the URL in the baseString was lower case... Peace. On Dec 26, 4:45 pm, "Dr.g." <roeegavr...@gmail.com> wrote: > Hey, > > I'm keep getting this error with no idea what's wrong. this is what i > do: > > //private function in use > private static byte[] encode(String val) > { > MemoryStream ms = new MemoryStream(); > StreamWriter sw = new StreamWriter(ms,Encoding.ASCII ); > > sw.Write(val); > sw.Flush(); > > return ms.ToArray(); > > } > > //the code which creates the signature: > > string algString = > Parameter.EncodeParameterString(consumerSecret) > + "&" + > > Parameter.EncodeParameterString(tokenSecret); > // now algString == "anonymous&" > > HMACSHA1 alg = new HMACSHA1(encode(algString)); > > string baseString = > Parameter.EncodeParameterString(method) + "&" + > > Parameter.EncodeParameterString(url) + "&" + > > Parameter.EncodeParameterString(concatenatedParameter); > // now baseString = "POST&https%3A%2F > %2Fwww.google.com%2Faccounts%2Foauthgetrequesttoken&oauth_callback > %3Doob%26oauth_consumer_key%3Danonymous%26oauth_nonce > %3D47933f1e322e465e9ee856f488050a01%26oauth_signature_method%3DHMAC- > SHA1%26oauth_timestamp%3D1324907313%26scope%3Dwww.google.com" > > return > System.Convert.ToBase64String(alg.ComputeHash(encode(baseString))); > > this lead me to use the following request header: > Authorization: OAuth > realm="https://www.google.com/",oauth_callback="oob",oauth_consumer_key="anonymous",oauth_nonce="47933f1e > 322e465e9ee856f488050a01",oauth_signature_method="HMAC-SHA1",oauth_signatur > e="1C98946FD2B2816B8898A348343BD4F0C32F1286",oauth_timestamp="1324907313" > > with the following > url:https://www.google.com/accounts/OAuthGetRequestToken?scope=www.google...
-- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en