Skip to main content

A simple app to integrate Google calendar.

Project description

==========================
Python Google calendar api
==========================

This package demonstrates a simple implementation of Google calendar api and let you create and update events.

Description
-----------

1. The first step is to turn on your google calendar api.

a. Use the following link to create or select a project from the google developer console and turn on the api.

https://console.developers.google.com/start/api?id=calendar

Click continue and go to credentials.

b. On the Add credentials to your project page, click the Cancel button.

c. At the top of the page, select the OAuth consent screen tab. Select an Email address, enter a Product name if not already set, and click the Save button.

d. Select the Credentials tab, click the Create credentials button and select OAuth client ID.

e. Select the application type "Other", enter the desired name, and click the Create button.

f. Click OK to dismiss the resulting dialog.

g. Click the Download JSON button to the right of the client ID.

h. Move this file to your projects home directory and rename it client_secret.json.

2. Install the package using the folowing command

pip install calendar_api-0.1.tar.gz

3. Once the client_secret.json file is in your projects home directory and the this package is installed, you are able to create and update events on your google calendar.

4. Example code:

from calendar_api.calendar_api import google_calendar_api
m=google_calendar_api()
m.create_event(calendar_id='<your calendar id>',
start='2017,12,5,15,00,00',
end='2017,12,5,15,15,00'
description='foo'
)


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_google_calendar_api-0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file python_google_calendar_api-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for python_google_calendar_api-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 100b1c9a5652705f7380731ea44a29e4da28551e030baf6859a506618b279b9b
MD5 db4052b29ac6a91e5335c1fa5bc9bee9
BLAKE2b-256 e0f35a9e0089ffeee66b6e3187a3ed414023d9f68f8706de4de8eda5f2d0c0f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page