'Create a new event in google calendar from the given event in Odoo.
:param event : record of calendar.event to export to google calendar'

def create_an_event(self, event):

    data = self.generate_data(event, isCreating=True)
    url = ('/calendar/v3/calendars/%s/events?fields=%s&access_token=%s' % ('primary', urllib2.quote('id,updated'), self.get_token()))
    headers = {'Content-type': 'application/json', 'Accept': 'text/plain'}
    data_json = json.dumps(data)
    return self.env['google.service']._do_request(url, data_json, headers, type='POST')
