0

Undefined index: oauth_token

Undefined index: oauth_token I got the following response from a (https://api.login.yahoo.com/oauth/v2/get_token) call. As you can see, I got oauth_token in the response, but when I use it by parse_str($response, $output); $this->access_token = array( 'oauth_token' => $output['oauth_token'], 'oauth_token_secret' => $output['oauth_token_secret'], 'xoauth_yahoo_guid' => $output['xoauth_yahoo_guid'], 'oauth_session_handle' => $output['oauth_session_handle'], ); Then I got an error undefined index: oauth_token

why?

Array( [oauth_token] => A=KWFnxXXbglnJ6x0Sayat6y_bGUcyNauYKqMWIvD69lC7qH7sbN_FjhItNBVvKtYLYZAO9Iq1u2A.wcSnHgsgyT_EsE32Jtet4mPuSrjpGzOPxE11w7ShZ3pSMhxZ4m9FXBL9VY.tbL7uzh.HjgqXg_g372H8JbC_X7Pu1BESHaJEhws658.hli98eOJkrJsLZHsd7ryhzAkMtodvt6Fgu2TNrdIRV1oc.9JkaFVyoGqRecjmcfUvm8YjU5ONVKgaYE94cXkXCtlbWTfTpkEPwWsPI_0v3OasKXLhwMxegH594AoHg_aoB1yo636UxeZ9KWW4DWX1JYe6r0rRCRVPj16chtER.fGVuciU.ApImrRXanJ.va9Syxsbtil9MedCeG2UA6eg._ewx7uylRCxAzcdV07f_Xtch.H1QXPwlcBUuO8jOtxT8ovaLqMUx4nSdZpLGSP0UmC35lBmlSXI4ZXHd2EXRNVA1Tcwe2GXAv94F6y51NDRmz30DA9sfbpL_BcukMM1c_vqn5Y.5mU9hvjGkH2KjmRor4Irdy9xhwlRna_4M9oYk9fe_MafbY68zL_wWzCXqDjExsVDp.Qz5IQAKzk4EkDB22YAiEcvAOqOGKCypznw2DinpV_TvnruvQZKdZYk3BxAoHZ2qPY36eLN7173Rx__oZYwoM3YdKQ8dLstQfs5jNkVnYahM.G48ku6UAsU6PniJ2lo15pQeRElEqRKG1CcssZH74.O7.zUx_SLSROALvdfkDH7iOxBzd2QzrjUwA9B374VtSiUML0aRnSUG8G3BHCSB.NwO1L9zKzHHfElxw4pR5vntA-- [oauth_token_secret] => 65758190a9acdc6cefae16218e82030563b4b294 [oauth_expires_in] => 3600 [oauth_session_handle] => AGXtQFFHxClYoh8dFvP_3akdd1E.BkyyJjx1wqU_DoKhKWg..."

by
  • CY
  • Mar 13, 2013
0 Replies

Recent Posts

in OAuth General Discussion YDN SDKs