config.php 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. /*
  3. * Copyright 2010 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. global $apiConfig;
  18. $apiConfig = array(
  19. // True if objects should be returned by the service classes.
  20. // False if associative arrays should be returned (default behavior).
  21. 'use_objects' => false,
  22. // The application_name is included in the User-Agent HTTP header.
  23. 'application_name' => '',
  24. // OAuth2 Settings, you can get these keys at https://code.google.com/apis/console
  25. 'oauth2_client_id' => '',
  26. 'oauth2_client_secret' => '',
  27. 'oauth2_redirect_uri' => '',
  28. // The developer key, you get this at https://code.google.com/apis/console
  29. 'developer_key' => '',
  30. // Site name to show in the Google's OAuth 1 authentication screen.
  31. 'site_name' => 'www.example.org',
  32. // Which Authentication, Storage and HTTP IO classes to use.
  33. 'authClass' => 'Yoast_Google_OAuth2',
  34. 'ioClass' => 'Yoast_Google_WPIO',
  35. 'cacheClass' => 'Yoast_Google_WPCache',
  36. // Don't change these unless you're working against a special development or testing environment.
  37. 'basePath' => 'https://www.googleapis.com',
  38. // IO Class dependent configuration, you only have to configure the values
  39. // for the class that was configured as the ioClass above
  40. 'ioFileCache_directory' =>
  41. (function_exists('sys_get_temp_dir') ?
  42. sys_get_temp_dir() . '/Google_Client' :
  43. '/tmp/Google_Client'),
  44. // Definition of service specific values like scopes, oauth token URLs, etc
  45. /*
  46. 'services' => array(
  47. 'analytics' => array('scope' => 'https://www.googleapis.com/auth/analytics.readonly'),
  48. 'calendar' => array(
  49. 'scope' => array(
  50. "https://www.googleapis.com/auth/calendar",
  51. "https://www.googleapis.com/auth/calendar.readonly",
  52. )
  53. ),
  54. 'books' => array('scope' => 'https://www.googleapis.com/auth/books'),
  55. 'latitude' => array(
  56. 'scope' => array(
  57. 'https://www.googleapis.com/auth/latitude.all.best',
  58. 'https://www.googleapis.com/auth/latitude.all.city',
  59. )
  60. ),
  61. 'moderator' => array('scope' => 'https://www.googleapis.com/auth/moderator'),
  62. 'oauth2' => array(
  63. 'scope' => array(
  64. 'https://www.googleapis.com/auth/userinfo.profile',
  65. 'https://www.googleapis.com/auth/userinfo.email',
  66. )
  67. ),
  68. 'plus' => array('scope' => 'https://www.googleapis.com/auth/plus.login'),
  69. 'siteVerification' => array('scope' => 'https://www.googleapis.com/auth/siteverification'),
  70. 'tasks' => array('scope' => 'https://www.googleapis.com/auth/tasks'),
  71. 'urlshortener' => array('scope' => 'https://www.googleapis.com/auth/urlshortener')
  72. )
  73. */
  74. );