On 7/30/07, jshy <[EMAIL PROTECTED]> wrote:
> I have started working on a set of perl modules for the Google
> provisioning api. I am working on using XML::Atom::* for creating and

I'm tooting my own horn here, but could you use the Net::Google::GData
module as the base and let's see if we can get rid of all the
duplicated effort on the cpan?  Plus I could use some more eyes on my
module.

> reading the entry's and feeds. The reading of feeds and entries is
> works well and is straight forward. Atom::Entry looks like it will
> work for creating the entries to feed to the api, but it's
> undocumented so  I am having to plug through the code to figure out
> how to get exactly what I need.

I'm thinking the same thing, but it looks like the GData module is
going to have to be limited to accessing and sending the feed; while
subclass modules (e.g., Net::Google::Blogger) will have to handle the
stuff particular to that service.  I could be wrong, if so, please
speak up.

As to the documentation, I'm finding the same thing.  Caelum on
freenode.org#perl pointed out the Class::Can module to me just a
couple of days ago and its speeding things up nicely.  In my code I
can do this:

my %methods = Class::Can->interrogate( (split /=/, "$blogger")[0] );

and I get a list of methods that $blogger can use.  Looks something like:

          'errstr' => 'XML::Atom::ErrorHandler',
          '_blogs_accessor' => 'Net::Google::Blogger',
          'mk_accessors' => 'Class::Accessor',
          'accessor_name_for' => 'Class::Accessor',
          'get_account_data' => 'Net::Google::Blogger',

I've found that it's easier to convert that to an hash of arrays:

    'XML::Atom::ErrorHandler' => [ errstr ],

etc.

YMMV

> Before I go any further I wanted to find out where others were with
> their efforts, especially with concern to using XML::Atom to create
> the entries. I would also like to get some input on module layout and
> interface design.

I would be glad to collaborate with you on this.
-- 
Alan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to