0


I'm trying to find a way to create a new google calendar event using cordova/phonegap. I have tried to use Google's JavaScript Calendar api for this, but for the OAuth Client ID I must specify an authorized javascript origin, and I am not sure if I can do that with cordova (or if I can, I'm not sure what the URL would be).

If there is a plugin, etc. that could create the event I could use that, if not if you could supply code and instructions for generating the key that would be very helpful.

Thank you all in advanced! =)

whirish
  • 450
  • 4
  • 18

1 Answers1

1

I think this should work. http://phonegap-tips.com/articles/google-api-oauth-with-phonegaps-inappbrowser.html

Also a dup of this?

Community
  • 1
  • 1
NanoGram
  • 58
  • 4
  • Thanks for the link! I couldn't get the code he supplied in the article to work, but I took the javascript off [his github repo](https://github.com/mdellanoce/google-api-oauth-phonegap/blob/v0.0.1/www/js/index.js) and it worked great! – whirish Jun 25 '15 at 04:16
  • @Mulletfingers999 I try with this but I'm not able to insert an event... How did you do this? – piterio Aug 04 '16 at 11:38
  • I think it's buried in [this app](https://github.com/whirish/book-me-now) somewhere @piterio – NanoGram Sep 21 '16 at 19:01