PHP Classes

Very nice application library, though I've yet to figure out ...

Recommend this page to a friend!

      PHP OAuth Library  >  All threads  >  Very nice application library,...  >  (Un) Subscribe thread alerts  
Subject:Very nice application library,...
Summary:Package rating comment
Messages:2
Author:Greg Burns
Date:2016-05-22 12:11:13
 

Greg Burns rated this package as follows:

Utility: Good
Consistency: Good
Documentation: Sufficient
Examples: Sufficient

  1. Very nice application library,...   Reply   Report abuse  
Picture of Greg Burns Greg Burns - 2016-05-22 12:11:13
Very nice application library, though I've yet to figure out how to store tokens for continuing access to YQL content between PHP script runs.

Thanks for the effort put into making this very useable library available for others.

  2. Re: Very nice application library,...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-05-22 20:30:50 - In reply to message 1 from Greg Burns
The class can renew expired tokens automatically next time you call the CallAPI function.

What you need to do is to use a specialized sub-class that stores tokens in a database, instead of the default storage which is session variables.

In this case that sub-class can retrieve tokens from the database and perform the calls even when the user is not present.

Take a look at this tutorial article. It was for Google but it works for Yahoo and others.

phpclasses.org/blog/package/7700/po ...