[Ruby] Unable to send Login@userName, Login@password, Name@givenName, and Name@familyName

43 views
Skip to first unread message

Liberty Young

unread,
Sep 1, 2011, 8:36:50 PM9/1/11
to google-app...@googlegroups.com
I'm having some serious difficulties in creating a new Google Apps Account for my domain (paid version).
The following ruby code returns with the error
"Required extensions are missing.Login@userName, Login@password, Name@givenName, and Name@familyName are required fields for user creation"

However, the apps:name and apps:login elements are in my xml document. What Gives ???

The XML document:
builder = Nokogiri::XML::Builder.new do |xml|
        xml.send(:"atom:entry", "xmlns:atom" => "http://www.w3.org/2005/Atom", "xmlns:apps" => "http://schemas.google.com/apps/2006") {
          xml.send(:"atom:category", "scheme" => "http://schemas.google.com/g/2005#kind", "term" => "http://schemas.google.com/apps/2006#user")
          xml.send(:"apps:name", "familyName" => "Jones", "givenName" => "Susan")
        }
      end
return builder.to_xml

Sending it:
access_token.post("https://apps-apis.google.com/a/feeds/rapleaf.com/user/2.0/", newUserXmlDoc,
       {'Content-type' => 'application/atom+xml'})

Gunjan Sharma

unread,
Sep 2, 2011, 12:51:13 PM9/2/11
to google-app...@googlegroups.com
Hello Liberty

Can you double check the xml that is being set. And confirm that it has the same format as this one.

Thanks
Gunjan Sharma

Liberty Young

unread,
Sep 2, 2011, 2:37:40 PM9/2/11
to google-app...@googlegroups.com
Sigh. As typical of this problem, there was something slightly wrong with my XML file. Sharma, thank you for your help.
Reply all
Reply to author
Forward
0 new messages