Loading ...
Sorry, an error occurred while loading the content.

5208Boss API Placefinder returns 401 (unauthorized)

Expand Messages
  • masterofpuppets117
    Apr 11, 2013
    • 0 Attachment
      Constantly return 401 unauthorized error. Header response says 'WWW-Authenticate: OAuth oauth_problem=signature_invalid' no matter what i do. Does placefinder need a token to work? http://developer.yahoo.com/oauth/guide/oauth-requesttoken.html

      Or can i just straight use this? http://developer.yahoo.com/boss/geo/docs/oauth_model_geo.html#d4e123

      both methods return invalid signature. VB.net code sample below.

      Dim consumerKey As String = "..."
      Dim consumerSecret As String = "..."
      Dim uri = New Uri("http://yboss.yahooapis.com/geo/placefinder?q=")
      Dim url As String, param As String
      Dim oAuth = New OAuthBase()
      Dim nonce = oAuth.GenerateNonce()
      Dim timeStamp = oAuth.GenerateTimeStamp()
      Dim signature = oAuth.GenerateSignature(uri, consumerKey, consumerSecret, string.Empty, string.Empty, "GET", _
      timeStamp, nonce, OAuthBase.SignatureTypes.HMACSHA1, url, param)
      Dim sendAddress = String.Format("{0}{1}&oauth_consumer_key={2}&oauth_nonce={3}&oauth_timestamp={4}&oauth_signature_method={5}&oauth_version=1.0&oauth_signature={6}" _
      , uri, addressStr, consumerKey, nonce, timeStamp, "HMAC-SHA1", signature)
    • Show all 2 messages in this topic