Apps Developer Blog

Information for Google Apps Developers

Using the new JS library to unlock the power of Google Apps

December 1, 2011
Share on Google+ Share on Twitter Share on Facebook
Google
Labels: Administrative APIs , Google Calendar API , Google Tasks API , JavaScript

14 comments :

Bog Imp said...

Pls, Include Ability to Upload Files directly from Javascript to Google Docs.

December 2, 2011 at 1:33 AM
Kyaw Tun said...

Is it safe to leave apiKey in JS?

December 3, 2011 at 9:24 AM
Anonymous said...

I need to turn on my cookies

December 5, 2011 at 11:12 AM
Dan Holevoet said...

The apiKey is used in conjunction with designated referrers, which you must declare in the APIs Console. If the key is sent from an unauthorized referrer, it will not work. You should make your accepted referrer list as limited as possible to ensure that others do not use your apiKey for their own requests.

December 5, 2011 at 5:38 PM
Srini said...

how can you use this in google sites?

December 9, 2011 at 4:13 AM
Swap said...

I am running your code but it is not working i have replaced your client id and api key with my api key and client id nothing happens when i am clicking login button .. Please help

April 17, 2012 at 10:35 PM
Tomino said...

I think I did everything as described (Client id, api key, example html with js code) but it does not work. Javascript console says: "Unable to post message to file://. Recipient has origin null.
core:rpc:shindig.random:shindig.sha1.js:814"

I am so new in this that I do not know where to start to fix this. Any suggestion what went wrong and how to fix it?

August 24, 2012 at 12:28 AM
Yahya Akhter said...

hey i need help from you . how to set sendNotifications parameter by using js libraris.to send notifications to atndees. for know i can insert events but notification could not sent to atendees

November 23, 2012 at 6:39 AM
erie said...

Hi Dan,
I am trying to access the calendar from a phonegap app so I got a client id for installed applications. I noticed that when the app tries to authenticate the user through oauth2.0, it assigns as origin the "file://" which is not the case. How can I fix this? Thank you very much in advance!

December 23, 2012 at 3:32 PM
John Kennedy said...

Hi Dan,

I'm using a bunch of this code verbatim in an app I'm writing. Is there any particular way you would like to be cited or a licence I should refer to?

December 28, 2012 at 12:16 AM
Jean-Louis curty said...

Hi,
do you have an example for installed applications with refresh token ?
it's difficult to find javascript examples,
thanks,
jl

February 5, 2013 at 2:29 AM
Javier Arellano said...

Thank you for your post, it helped me a lot!

April 11, 2013 at 6:30 AM
Thomas König said...

Thanks a lot man! You made my day :-)

April 26, 2013 at 4:30 AM
Li Z. said...

I have exact problem as 'Tomino" stated. I provided valid value for clientId and apiKey. I got error 'Unable to post message to file://. Recipient has origin null. core:rpc:shindig.random:shindig.sha1.js:970".

Do I missing anything? Thanks for help.

May 17, 2013 at 10:13 AM

Post a Comment

  

Labels


  • .NET 3
  • #io15 1
  • Administrative APIs 26
  • Admin SDK 4
  • AdSense 1
  • analytics 4
  • Android 5
  • App Engine 5
  • Apps Script 98
  • Auth 1
  • billing 4
  • Charts 1
  • Chrome OS 1
  • classroom 1
  • Cloud Storage API 1
  • Community 1
  • Developers 5
  • Directory API 1
  • Drive 2
  • Drive SDK 38
  • execution API 1
  • Firebase 1
  • Freemium 1
  • Fusion Tables 2
  • Gadgets 5
  • Gmail APIs 16
  • Google+ 3
  • Google APIs 3
  • Google Apps 3
  • Google Apps Directory API 1
  • Google Apps Marketplace 3
  • Google Apps Script 1
  • Google Calendar API 20
  • Google Contacts API 3
  • Google Data Protocol 7
  • google docs 3
  • Google Docs API 20
  • Google Drive 2
  • Google Forms 4
  • Google I/O 3
  • googlenew 1
  • Google Prediction API 3
  • Google Profiles API 2
  • Google sheets 2
  • Google Sites API 4
  • Google Spreadsheets API 4
  • Google Talk 1
  • Google Tasks API 6
  • Groups 2
  • Guest Post 42
  • ISVs 2
  • java 1
  • JavaScript 3
  • marketing 3
  • Marketplace 47
  • Marketplace ISV Guest 21
  • Migration 1
  • Mobile 1
  • mpstaffpick 1
  • oauth 11
  • OpenID 7
  • PHP 1
  • python 4
  • realtime API 1
  • Resellers 2
  • Ruby 1
  • SaaS 1
  • security 1
  • Staff Picks 2
  • webinar 2


Archive


  •     2015
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
  •     2014
    • Dec
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Mar
    • Feb
    • Jan
  •     2013
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2012
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2011
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2010
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb

Feed

Company-wide

  • Official Google Blog
  • Public Policy Blog
  • Student Blog

Products

  • Android Blog
  • Chrome Blog
  • Lat Long Blog

Developers

  • Developers Blog
  • Ads Developer Blog
  • Android Developers Blog
  • Google
  • Privacy
  • Terms