Hi Ken, Provisioning API v1.0 does not support adding email addresses outside your domain to your mailing lists. However, this is possible with the latest version i.e. Provisioning API v2.0 available for download here:
http://code.google.com/apis/apps/libraries_and_samples.html The following sample code with Provisioning API v2.0 should let you add external email addresses: import gdata.apps.service apps = gdata.apps.service.AppsService('[EMAIL PROTECTED]', 'password', 'example.com') apps.ProgrammaticLogin() apps.AddRecipientToEmailList('[EMAIL PROTECTED]','TestList') mailingList = apps.RetrieveAllRecipients('TestList') print mailingList Thanks, Anirudh On May 23, 9:46 pm, Ken Duda <[EMAIL PROTECTED]> wrote: > The google apps API (at least, the python wrapper > provisioning.py I downloaded in 2007) does not allow me to add or > remove external email addresses to or from lists, so my automated list > management system is somewhat ineffective. Specifically, I am doing > this: > > api = google.appsforyourdomain.provisioning.API( ... ) > api.UpdateMailingList( u'testlist', u'[EMAIL PROTECTED]', u'add' ) > > which results in: > > Error: ProvisioningApiError: Object does not exist: No extended > message available for this error. > > It works fine if I do this: > > api = google.appsforyourdomain.provisioning.API( ... ) > api.UpdateMailingList( u'testlist', u'kduda', u'add' ) > > because the username is within my domain. However, it also fails if I > use u'[EMAIL PROTECTED]'. (Yet RetrieveMailingList reports me as > [EMAIL PROTECTED] even though UpdateMailingList won't accept that, > kind of crufty...) > > Any ideas how to use the python Google Apps provisioning API to add > external (out-of-domain) email address to a list within google apps > for your domain? > > Thanks, > -Ken --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
