Have been trying to access the google email settings api via ruby.
So far, I can get an access token using the ruby google api client,
#<Google::APIClient:0x007f08b89dabf8
@authorization=
#<Signet::OAuth2::Client:0x007f08b72b6990
@access_token=
"hfiponawbvpuqwbr[igi[qwrjgip[nwq[rbgqwbr[ogn[iwrqjpgjowpqrjpogjqwr",
@additional_parameters={},....etc
However, when I try to use this to access the email settings api:
GET https://apps-apis.google.com/a/feeds/emailsettings/2.0/mydomain.com/muggins/filter?access_token=<access_token>
I get Authorization required
Authorization required
Error 401
As a response.Have followed this example (taken from the drive docs and used exactly the same method for drive and it works. But there's no example in the email settings docs and the same method doesn't work (it's assumedly rejecting the access token).
Any ideas? It feels like I'm so close and getting this far has been a right royal pain in the backside...