Login   Register  
PHP Classes
elePHPant
Icontem

database storage of tokens for scheduled querying

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP OAuth API  >  All threads  >  database storage of tokens for scheduled querying  >  (Un) Subscribe thread alerts  
Subject:database storage of tokens for scheduled querying
Summary:database storage of tokens for scheduled querying
Messages:2
Author:michel kollenhoven
Date:2013-01-23 17:18:51
Update:2013-01-30 08:14:58
 

  1. database storage of tokens for scheduled querying   Reply   Report abuse  
Picture of michel kollenhoven
michel kollenhoven
2013-01-23 17:18:51
i wold like to use this class for quering api's authomaticly and without user intervention, how do i use for example mysql for storage of the tokens etc?

  2. Re: database storage of tokens for scheduled querying   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2013-01-30 08:14:58 - In reply to message 1 from michel kollenhoven
Once the process of obtaining the OAuth token is completed, you can just take the values of the $access_token class variable and store it in your database.

You also need to store the value of the $access_token_secret variable if you are accessing an API based on OAuth 1.0 or 1.0a versions.

Then to make calls the API you just need to set those variables from the values stored in the database.