Title: Manually add google API keys?
Last modified: August 21, 2016

---

# Manually add google API keys?

 *  Resolved [Sem Wong](https://wordpress.org/support/users/sem-wong/)
 * (@sem-wong)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/manually-add-google-api-keys/)
 * Hi,
 * I was just wondering where you’re saving the google auth keys (client id and 
   client secret).
 * I am creating a system where development environments are created automatically
   with WordPress installations, and I want this plugin to be setup automatically
   aswell.
 * [https://wordpress.org/plugins/google-apps-login/](https://wordpress.org/plugins/google-apps-login/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [danlester](https://wordpress.org/support/users/danlester/)
 * (@danlester)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/manually-add-google-api-keys/#post-5109232)
 * Good question – look in your database under wp_options, for a option_name of ‘
   galogin’.
 * That is a serialized array – I think the only entries you absolutely need will
   be ga_clientid and ga_clientsecret.
 * Depending on how your installation works, you could either try to get these directly
   into the database, or if you can use PHP code (within the WordPress environment),
   try the function update_site_option.
 * [http://codex.wordpress.org/Function_Reference/update_site_option](http://codex.wordpress.org/Function_Reference/update_site_option)
 * Something like update_site_option(‘galogin’, array(‘ga_clientid’=>'<clientid>’,‘
   ga_clientsecret’ => ‘<clientsecret>’));
 * The problem will be how to create new Google projects or client ids for each 
   new site though…
 * Please email if you get anywhere – would be interesting to find out how it goes!
 * Thanks,
 * Dan
 *  Thread Starter [Sem Wong](https://wordpress.org/support/users/sem-wong/)
 * (@sem-wong)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/manually-add-google-api-keys/#post-5109235)
 * Hey danlester.
 * Thanks for letting me know. I will find them :).
 * Yes, I tried to look for an API from google to create new credentials, but couldn’t
   find one. We will probably add some form items that will ask for these ID’s, 
   before implementing them in the system.
 * We still have to brainstorm about this, our system is in baby phase right now:).
 *  [danlester](https://wordpress.org/support/users/danlester/)
 * (@danlester)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/manually-add-google-api-keys/#post-5109355)
 * Yes, I’ve also searched for an API to create these, and believe there used to
   be an undocumented API used internally by Google.
 * But I’ve never been able to track down information, and it also seems like they’ve
   stopped using it themselves… so even if you could find it, I doubt it would be
   a good idea to rely on it.
 * Dan

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Manually add google API keys?’ is closed to new replies.

 * ![](https://ps.w.org/google-apps-login/assets/icon-256x256.png?rev=2834114)
 * [Login for Google Apps](https://wordpress.org/plugins/google-apps-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-apps-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-apps-login/)
 * [Active Topics](https://wordpress.org/support/plugin/google-apps-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-apps-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-apps-login/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [danlester](https://wordpress.org/support/users/danlester/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/manually-add-google-api-keys/#post-5109355)
 * Status: resolved