{"action":"created","issue":{"url":"https://api.github.com/repos/nikcross/open-forum/issues/140","labels_url":"https://api.github.com/repos/nikcross/open-forum/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/nikcross/open-forum/issues/140/comments","events_url":"https://api.github.com/repos/nikcross/open-forum/issues/140/events","html_url":"https://github.com/nikcross/open-forum/issues/140","id":90327913,"number":140,"title":"Issue in Google calender api When loading","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nikcross/open-forum/labels/auto-migrated","name":"auto-migrated","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-23T08:50:58Z","updated_at":"2015-07-30T10:05:29Z","closed_at":"2015-07-30T10:05:29Z","body":"```\nI want to integrate google calender to add events from my site.\n\nI have a mail id \"hhhhh@gmial.com\".I wnat to add event to google calender of \nthis mail id.\n\nHow can i do this?\n\nI only need javascriptinserting  not php inserting.\n\nThat means inserting values using php not needed .\nI need only javascript code.\n\nHow can i do this?\n\nWhen i using google code for this it is not working.\n\nDisplays error all time.This is the code i used:\n\n    <html>\n    <head>\n    <script type=\"text/javascript\" src=\"http://www.google.com/jsapi\"></script>\n    <script type=\"text/javascript\">\n     google.load(\"gdata\", \"1\");\n     google.setOnLoadCallback(getMyFeed);\n    </script>   \n    </head>\n    <body>\n    <script type=\"text/javascript\">\n     var myService;\n     var feedUrl = \"http://www.google.com/calendar/feeds/mariyadavis90@gmail.com/private/full\";\n     function logMeIn() {\n       scope = \"http://www.google.com/calendar/feeds/\";\n       var token = google.accounts.user.login(scope);\n     }\n     function setupMyService() {\n       myService = new google.gdata.calendar.CalendarService('exampleCo-exampleApp-1');\n       logMeIn();\n     }\n     function getMyFeed() {\n       setupMyService();\n     \n     myService.getEventsFeed(feedUrl, handleMyFeed, handleError);\n     }\n      \n     function handleMyFeed(myResultsFeedRoot) {\n       alert(\"This feed's title is: \" + myResultsFeedRoot.feed.getTitle().getText());\n     }\n    \n     function handleError(e) {\n       alert(\"There was an error!\");\n       alert(e.cause ? e.cause.statusText : e.message);\n     }\n     /*\n      * Create a single event\n      */\n     // Create the calendar service object\n     var calendarService = new google.gdata.calendar.CalendarService('GoogleInc-jsguide-1.0');\n     // The default \"private/full\" feed is used to insert event to the\n     // primary calendar of the authenticated user\n     var feedUri = 'http://www.google.com/calendar/feeds/default/private/full';\n     // Create an instance of CalendarEventEntry representing the new event\n     var entry = new google.gdata.calendar.CalendarEventEntry();\n     // Set the title of the event\n     entry.setTitle(google.gdata.Text.create('JS-Client: insert event'));\n     // Create a When object that will be attached to the event\n     var when = new google.gdata.When();\n     // Set the start and end time of the When object\n     var startTime = google.gdata.DateTime.fromIso8601(\"2010-03-10T09:00:00.000-08:00\");\n     var endTime = google.gdata.DateTime.fromIso8601(\"2010-03-10T10:00:00.000-08:00\");\n     when.setStartTime(startTime);\n     when.setEndTime(endTime);\n     // Add the When object to the event\n     entry.addTime(when);\n     // The callback method that will be called after a successful insertion from insertEntry()\n     var callback = function(result) {\n       PRINT('event created!');\n     }\n     // Error handler will be invoked if there is an error from insertEntry()\n     var handleError = function(error) {\n       PRINT(error);\n     }\n     // Submit the request using the calendar service object\n     calendarService.insertEntry(feedUri, entry, callback,handleError, google.gdata.calendar.CalendarEventEntry);\n    \n    </script>\n     <form>\n     <input type=\"button\" value=\"Start\" onClick=\"getMyFeed()\" />\n     </form>\n    </body>\n    </html>\n\nError:\n\n    google.gdata is undefined\n    [Break On This Error] \t\n    \n    myService = new google.gdata.calendar.CalendarService('exampleCo-exampleApp-1')\n    \n    /test_cal/ (line 17)\n    google.gdata is undefined\n    [Break On This Error] \t\n    \n    myService = new google.gdata.calendar.CalendarService('exampleCo-exampleApp-1')\n```\n\nOriginal issue reported on code.google.com by `phpprogr...@gmail.com` on 17 Feb 2012 at 12:17"},"comment":{"url":"https://api.github.com/repos/nikcross/open-forum/issues/comments/126259209","html_url":"https://github.com/nikcross/open-forum/issues/140#issuecomment-126259209","issue_url":"https://api.github.com/repos/nikcross/open-forum/issues/140","id":126259209,"user":{"login":"nikcross","id":1853323,"avatar_url":"https://avatars.githubusercontent.com/u/1853323?v=3","gravatar_id":"","url":"https://api.github.com/users/nikcross","html_url":"https://github.com/nikcross","followers_url":"https://api.github.com/users/nikcross/followers","following_url":"https://api.github.com/users/nikcross/following{/other_user}","gists_url":"https://api.github.com/users/nikcross/gists{/gist_id}","starred_url":"https://api.github.com/users/nikcross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikcross/subscriptions","organizations_url":"https://api.github.com/users/nikcross/orgs","repos_url":"https://api.github.com/users/nikcross/repos","events_url":"https://api.github.com/users/nikcross/events{/privacy}","received_events_url":"https://api.github.com/users/nikcross/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T10:05:29Z","updated_at":"2015-07-30T10:05:29Z","body":"This is not the correct project"}}