New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use Gmail ? #18
Comments
Yeah, use the api_query method. I was fiddling about with all this about a month ago and I was able to pull off batch calls and other stuff with it. My memory is a bit fuzzy and the code is a giant hack job but it worked. I'll post it to a github repo so you can look at it. I have to check to make sure no credentials are in there before I do that. |
OK, I shared a repo with you. It has a module I was using to screw around with Moo::Google. Not meant for release. Look in the "hacked_moose_modules" directory. You'll need that module to get the code in my modules to work properly. I don't know if I left the code in a working state or not. You may need to fuss with it a bit. |
I have no problem using the Google GMAIL API - the issue is that
WebService::Google::Client doesn't work to access the GMAIL methods deeper
than the 3 top level which makes it of no use and requires reverting to
lower level calls which means that is just as easy to not use the module at
all.
…On Fri, Oct 5, 2018 at 8:05 AM Steve Dondley ***@***.***> wrote:
OK, I shared a repo with you. It has a module I was using to screw around
with Moo::Google. Not meant for release. Look in the "hacked_moose_modules"
directory. You'll need that module to get the code in my modules to work
properly.
I don't know if I left the code in a working state or not. You may need to
fuss with it a bit.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#18 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFoHm9DE0Rz1yBZT_4hfI3pu-GbDnjohks5uhoYjgaJpZM4XI8yr>
.
|
Right. Moo::Google doesn't work with all API calls. You have to use api_query. |
unless your hacked earlier code version from this repo does actually
correctly iterate down the API methods in the discovery document which is
really the key issue - is that what you were doing?
…On Fri, Oct 5, 2018 at 8:07 AM Peter Scott ***@***.***> wrote:
I have no problem using the Google GMAIL API - the issue is that
WebService::Google::Client doesn't work to access the GMAIL methods deeper
than the 3 top level which makes it of no use and requires reverting to
lower level calls which means that is just as easy to not use the module at
all.
On Fri, Oct 5, 2018 at 8:05 AM Steve Dondley ***@***.***>
wrote:
> OK, I shared a repo with you. It has a module I was using to screw around
> with Moo::Google. Not meant for release. Look in the "hacked_moose_modules"
> directory. You'll need that module to get the code in my modules to work
> properly.
>
> I don't know if I left the code in a working state or not. You may need
> to fuss with it a bit.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#18 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AFoHm9DE0Rz1yBZT_4hfI3pu-GbDnjohks5uhoYjgaJpZM4XI8yr>
> .
>
|
That's what I was planning on doing, yes. I needed to learn how the api_query worked though. So I did some experimenting with it. I did write a crude function to convert an api call that didn't work into one that did. |
lol - ok - never mind - sorry I shoudl just let you do your thing as
probably seems like I'm trolling you - am not - just trying to work out
whether there is anything I can align with .. thanks for the response
…On Fri, Oct 5, 2018 at 8:08 AM Steve Dondley ***@***.***> wrote:
Right. Moo::Google doesn't work with all API calls. You have to use
api_query.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#18 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFoHm9eAIQ-1-FgrPAWNKKXoW3AVfmCPks5uhob2gaJpZM4XI8yr>
.
|
Look in the API.pm module in my repo, the "get" method. I have to retrace what I did but it basically enables you to do a get api call with a resource, which you can't do with Moo::Google. |
That module also has a "batch" function which was a real bear to figure out. Had to do a lot of hacking to the Client.pm module to get that working. |
I am able to access the top level API exposed methods such as
print Dumper $gapi_agent->Gmail->Users->getProfile( { userId => 'me' } )->json if ( );
But I am unable to work out how to use any API method that is more deeply described such as Messages::list etc - are these supposed to work or do we need to access the
$gapi_agent->api_query
lower level method directly for essentially all useful usage?The text was updated successfully, but these errors were encountered: