PHP Classes

mysqli_oauth_client_class Query function

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement PHP ...  >  All threads  >  mysqli_oauth_client_class Query function  >  (Un) Subscribe thread alerts  
Subject:mysqli_oauth_client_class Query function
Summary:What are the parameters to the Query function?
Messages:2
Author:Vivien Ashworth
Date:2015-02-27 17:03:22
 

  1. mysqli_oauth_client_class Query function   Reply   Report abuse  
Picture of Vivien Ashworth Vivien Ashworth - 2015-02-27 17:03:22
I am using mysql_oauth_client_class from the mysqli_*_google.php files. The Initialize and Finalize are fine but what are the parameters to the Query function. I keep getting errors about not enough bind parameters.

Can someone give an example of how to call this function?

  2. Re: mysqli_oauth_client_class Query function   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-02-28 22:20:58 - In reply to message 1 from Vivien Ashworth
You should not be calling that function directly, otherwise it would be documented. That is just for use of sub-classes.

As documented, for implement the OAuth authorization flow, call the Process function between the Initialize and Finalize calls.

For performing API calls, call the CallAPI function.

Take a look at the mysqli_login_with_google.php script to authorize your application with Google and store tokens in MySQL using MySQLi.

phpclasses.org/package/7700-PHP-Aut ...

For performing API calls when the user is offline (for instance from the CLI/Shell) look at the example mysqli_offline_access_to_google.php

phpclasses.org/package/7700-PHP-Aut ...

This article gives you more details:

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