def request_export(username, document)
      response = make_request(:post, export + "/#{username}", body: document, headers: {'content-type' => 'application/atom+xml'})
      export = create_doc(response.body, :export_response)

      export.find('//apps:property').inject(nil) do |request_id, node|
        node.attributes['name'] == 'requestId' ? node.attributes['value'].to_i : request_id
      end
    end
def request_export(username, document)
      response = make_request(:post, export + "/#{username}", body: document, headers: {'content-type' => 'application/atom+xml'})
      export = create_doc(response.body, :export_response)

      export.find('//apps:property').inject(nil) do |request_id, node|
        node.attributes['name'] == 'requestId' ? node.attributes['value'].to_i : request_id
      end
    end
request_export performs the GoogleApps API call to
 generate a mailbox export.  It takes the username
 and an GoogleApps::Atom::Export instance as
 arguments

 request_export 'username', document

 request_export returns the request ID on success or
 the HTTP response object on failure.