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'})