You are welcome Doug.  And thanks for helping out in the forum :)

--Tony

On Jan 9, 9:53 am, DougC <[email protected]> wrote:
> Thanks for the link Tony. This is helpful.
>
> Doug
>
> On Jan 7, 2:15 pm, "Tony (Google)" <[email protected]> wrote:
>
> > Peter,
>
> > Actually we do have pydoc for the Python Google Data client library
> > and can be found below:
>
> >http://code.google.com/apis/gdata/clientlibs.html
>
> > Unfortunately, it is not properly linked in the Google Apps
> > documentation currently.
>
> > In terms of your question on how to get the Auth token and URL
> > encoding, the Python client lib should handle everything for you.
>
> > The example below should do the job (Thanks Doug):
>
> > #!/usr/bin/python
> > import gdata.apps.service
> > service = gdata.apps.service.AppsService(email='[email protected]',
> > domain='mydomain.com', password='password')
> > service.ProgrammaticLogin()
> > user_entry = service.CreateUser('username', 'family_name',
> > 'given_name', 'password')
>
> > Thanks,
>
> > --Tony
>
> > On Jan 6, 6:31 pm, "peter cooper" <[email protected]> wrote:
>
> > > DougC,
>
> > > I agree with the lack of proper class/method documentation for Google API 
> > > in
> > > Python - there certainly needs to be something akin to pod in CPAN. I 
> > > would
> > > be glad to write this stuff if I had someone to give me access to the
> > > internals. Google does have some documentation, but it isn't to the point:
> > > see the OAuth  pages, and the Perl code example showing how to get an
> > > authentication key. The examples do not show workable Python code that can
> > > be put into a .py file and run through the SDK app developer. All of the
> > > Provisioning APIs need to have snippets of workable code which explain in
> > > simple terms what the URL encoding objects are doing, what the defaults 
> > > are,
> > > what the hash keys and values are, etc. None of this appears in the Google
> > > Provisioning API documentation.
>
> > > I need a simple bit of code that creates a Gmail account using the
> > > Provisioning API under a Premiere Edition account. Anybody who can point 
> > > me
> > > to a bit of code that shows clearly how to get the authentication key, do
> > > the https/URL encoding with the proper URL, I would really appreciate it.
>
> > > On Tue, Jan 6, 2009 at 6:49 AM, DougC <[email protected]> wrote:
>
> > > > Hi all,
>
> > > > I've been using the Provisioning API with great success in PHP, Perl
> > > > and Java, but would now like to try Python. I'm new to Python, and am
> > > > having some trouble finding any good demo/example code, like the Zend
> > > > demo that came with the PHP API package. The Python API documentation
> > > > assumes that you'll know how to use the API, without describing class/
> > > > method details that I've familiar with using documentation like
> > > > Javadocs. For example, I'd like to list all users in my Google Domain,
> > > > so in Python I start out with:
>
> > > > #!/usr/bin/python
> > > > import gdata.apps.service
> > > > service = gdata.apps.service.AppsService(email='[email protected]',
> > > > domain='mydomain.com', password='password')
>
> > > > service.ProgrammaticLogin()
> > > > ---
> > > > The API shows a service.RetrieveAllUsers() method, which returns a
> > > > UserFeed object. But it's here that I'm lost. I can't find any details
> > > > on a UserFeed object or it's methods. I'm probably looking in the
> > > > wrong places and/or not understanding how Python works. I'd like to
> > > > find Javadoc type reference for Python and/or some demo/example code
> > > > that I can use to learn how Python interacts with the Provisioning
> > > > API.
>
> > > > Can anyone point me in the right direction? I really want to start
> > > > using Python with the Google APIs.
>
> > > > TIA,
>
> > > > Doug
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps APIs" 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-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to