SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Apr 2004
    Location
    Boston
    Posts
    482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Zend API and gmail question

    Hello,

    I'm working on a web form that adds contact info to a gmail account. I've got it working thanks to a tutorial I found but I can't get it to add the contact to a specific group. I am using the Zend API with gmail.
    Every contact from this form will be added to the same group. Does anyone have experience with this that can help me?

    Here is my code snippet for the group portion:

    PHP Code:
             // add group name element
            
    $group $doc->createElement('gContact:groupMembershipInfo');
            
    $group->setAttribute('rel' ,'http://schemas.google.com/g/2005#work');
            
    $entry->appendChild($group);
            
    $groupName $doc->createElement('gContact:groupMembershipInfo'$inputData['group']);
            
    $group->appendChild($groupName); 
    Thank you.

  2. #2
    SitePoint Member
    Join Date
    Jan 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question

    Are you trying to add new contacts or update contacts? Is the rest of your entry well formed and complete. You cannot submit empty tags in many places. Could you post the code that you use to construct your entry, not just the group membership tag?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •