google APIs のパラメータ


google api のパラメータ指定方法

require系のみルートに配置して、それ以外は
resource配下に配置すると、BODYパラメータとして渡せる。

parameter.js
        function chkDate(){
            gapi.client.calendar.events.insert(
                {
                    calendarId :constants.gapi.calerndar_id,
                    resource : {
                        summary : "testtest",
                        start : {
                          date: "2012-12-04"
                        },
                        end: {
                          date: "2012-12-04"
                        }
                    }
                }
            ).execute( function(e){
               console.log(e); 
            });