PHP Classes

Yahoo! Login

Recommend this page to a friend!

      PHP HTTP protocol client  >  All threads  >  Yahoo! Login  >  (Un) Subscribe thread alerts  
Subject:Yahoo! Login
Summary:How to get through Yahoo's Security
Messages:84
Author:Erick Bajao
Date:2005-10-12 03:50:41
Update:2007-11-17 20:53:27
 
  1 - 10   ...   31 - 40   41 - 50   51 - 60   61 - 70   71 - 80   81 - 84  

  61. Re: Yahoo! Login   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2006-09-30 04:25:16 - In reply to message 60 from Max
The Yahoo user class that comes with this package can login in any page of Yahoo services and retrieve its contents.

Just call the Login setting the GetPage parameter to the Yahoo page that has the message subjects you need.

  62. Re: Yahoo! Login   Reply   Report abuse  
Picture of nikola nikola - 2006-11-01 23:29:03 - In reply to message 61 from Manuel Lemos
Could you please be more specific, I'm very new to this...
What exactly do i need to write in php to login to yahoo using your class so that i can use curl after it to get the contents i need?

Please help...

  63. Re: Yahoo! Login   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2006-11-01 23:53:37 - In reply to message 62 from nikola
You are not going to use curl directly. That is too complicated. The purpose of the Yahoo user class of this package is to simplify that task.

Take a look at the yahoo_export_address_book.php and yahoo_group_invite.php examples. These use the Yahoo user class to login in Yahoo and get some relevant pages.

What you need to do is to write a script that creates an object of this class and calls its Login function. This function takes an associative array as parameter. You need to set the GetPage entry of that array to specify the URL of the Yahoo page that you want it to return.

  64. Re: Yahoo! Login   Reply   Report abuse  
Picture of nikola nikola - 2006-11-02 00:25:28 - In reply to message 63 from Manuel Lemos
after setting $yahoo = new yahoo_user_class; also user name and password, i tried like this to get the page i need:

$parameters
=array('GetPage'=>'http://basketball.fantasysports.yahoo.com/nba/2899');
// also tried without http://
$success = $yahoo->Login($parameters);

if i echo $success i get 1, not page contents, i need this page contents returned in a string so i can extract information i need and show it on my page

i guess i'm not understanding something right, could you please write me how can i get the string with needed yahoo page contents?

  65. Re: Yahoo! Login   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2006-11-02 00:55:36 - In reply to message 64 from nikola
The page contents are returned in the $parameters['Response'] entry.

  66. Re: Yahoo! Login   Reply   Report abuse  
Picture of nikola nikola - 2006-11-02 02:10:36 - In reply to message 65 from Manuel Lemos
Thanx a lot, now i got everything i need. Thanx again.

  67. Re: Yahoo! Login   Reply   Report abuse  
Picture of hiddenlife hiddenlife - 2007-02-10 17:00:38 - In reply to message 66 from nikola
The class does not work with yahoo 360.
I always get
'the login page does not redirect to the expected page'; error

Please check

$yahoo = new yahoo_user_class;
....
then user and password set

$parameters
=array('GetPage'=>'https://login.yahoo.com/config/login_verify2?.intl=us&.done=http%3A%2F%2F360.yahoo.com%2F%3F.login%3D1&.src=360');
// also tried without http://
$success = $yahoo->Login($parameters);
if ($success) echo $parameters['Response']; else echo $yahoo->error;
?>

  68. Re: Yahoo! Login   Reply   Report abuse  
Picture of hiddenlife hiddenlife - 2007-02-10 17:14:01 - In reply to message 67 from hiddenlife
Oh I am sorry, ur class works good, I just put a wrong GetPage link

  69. Re: Yahoo! Login   Reply   Report abuse  
Picture of hiddenlife hiddenlife - 2007-02-10 17:17:44 - In reply to message 68 from hiddenlife
I am sorry again,

this problem happens , after logging and show the correct page (yeah yahoo shows that i logged in)

i click an entry on that blog and this new page shows that i am not logged in ??

  70. Re: Yahoo! Login   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-02-10 17:42:08 - In reply to message 69 from hiddenlife
Of course. You are just retrieving the requested page asking the class to login as a given Yahoo user.

If you display the page on a browser, the browser will not be receiving the cookies from the Yahoo site that tell it that you are logged in.

Whatever you are doing, showing pages retrieved like that is not the way to achieve it.

 
  1 - 10   ...   31 - 40   41 - 50   51 - 60   61 - 70   71 - 80   81 - 84