priyadarshy / google-calendar-v3

Google Calendar V3 Python Client
Apache License 2.0
6 stars 1 forks source link

Inserting an event doesn't work unless you add the Content-Type application/json header #2

Open ctoth opened 10 years ago

ctoth commented 10 years ago

By default, the way it works now, it simply returns an http 400 with an error about not taking form-encoded content I was able to subclass the GoogleCalendarAPI object and make this change and it worked, I can instead fix this and open a pull request if you'd prefer.

priyadarshy commented 10 years ago

Happy to check out your pull request and merge it in. I'll be thoroughly testing and improving this library in the next three weeks so now would be a great time.

Also welcome any other contributions to improve it -- if you looked at the source you'll notice theres a lot of room for improvement.

ctoth commented 10 years ago

As long as you're considering a major refactor/rewrite, I'd love to see an API which more closely parallels the actual underlying model, I.E.

API.events #maybe implies list
API.events.insert
API.events.delete

Also, a few prebuilt auth flows would be fantastic, I can work up a pull request with some of those. I'm pretty sure all the POST methods will need the application/json Content-Type Thanks for your work on this!

On 7/16/2014 11:02 AM, Ashutosh Priyadarshy wrote:

Happy to check out your pull request and merge it in. I'll be thoroughly testing and improving this library in the next three weeks so now would be a great time.

Also welcome any other contributions to improve it -- if you looked at the source you'll notice theres a lot of room for improvement.

— Reply to this email directly or view it on GitHub https://github.com/priyadarshy/google-calendar-v3/issues/2#issuecomment-49195803.

    -Q

Accessible Software for the Blind

http://GetAccessibleApps.com