First - Am I able to use this API using OAuth 2.0? My application uses OAuth 2.0 to connect with Calendar, Contacts and Tasks, so I have the basic thing working. When I tried with Email API, putting the access_token in the URL as usual, I get error 401 - authorization required.
Trying to solve this, I used the alternate method of passing the access token, i.e. "Authorization: Bearer ..." in a http header. Now, I am getting http error 500 - server error, in response to my post. I am wondering if I am in fact past the authorization issue, or it doesn't like the header? If I am past it, then the server does not like the post data that I submitted, I assume. If that is the case, can somebody comment on the data below - this is sample data cribbed from the documentation, in an attempt to get something working. Thanks for any help.
(sample post data follows):
------=_Part_0_25934938.1266495790627
Content-Type: application/atom+xml
------=_Part_0_25934938.1266495790627
Content-Type: message/rfc822
--000e0cdf7740f8017e0482b9877a
Content-Type: text/plain; charset=ISO-8859-1
howdy multipart!
--000e0cdf7740f8017e0482b9877a
Content-Type: text/html; charset=ISO-8859-1
howdy multipart!
--000e0cdf7740f8017e0482b9877a--
------=_Part_0_25934938.1266495790627