gglstmp_client

The WordPress Core gglstmp client function.

Description

gglstmp_client(); 

Usage

  1. if ( !function_exists( 'gglstmp_client' ) ) { 
  2. require_once '/google-sitemap-plugin.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gglstmp_client(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/google-sitemap-plugin.php  
  1. function gglstmp_client() { 
  2. global $gglstmp_plugin_info; 
  3. require_once( dirname( __FILE__ ) . '/google_api/autoload.php' ); 
  4. $client = new Google_Client(); 
  5. $client->setClientId( '37374817621-7ujpfn4ai4q98q4nb0gaaq5ga7j7u0ka.apps.googleusercontent.com' ); 
  6. $client->setClientSecret( 'GMefWPZdRIWk3J7USu6_Kf6_' ); 
  7. $client->setScopes( array( 'https://www.googleapis.com/auth/webmasters', 'https://www.googleapis.com/auth/siteverification' ) ); 
  8. $client->setRedirectUri( 'urn:ietf:wg:oauth:2.0:oob' ); 
  9. $client->setAccessType( 'offline' ); 
  10. $client->setDeveloperKey( 'AIzaSyBRFiI5TGKKeteDoDa8T8GkJGxRFa1IMxE' ); 
  11. $client->setApplicationName( $gglstmp_plugin_info['Name'] ); 
  12. return $client;