lib/postini/automated_batch_service.rb
# Return a list of orgs, possibly filtered and sorted. Refer to the Postini
# Automated Batch Service Manual for an explanation of each field.
#
# Possible options are:
#
# :targetOrg => string
# :childorgs => boolean
# :sort => string
# :fields => array (strings)
# :start => integer
# :end => integer
#
# Postini will return a maximum of 15,000 results
Return a list of orgs, possibly filtered and sorted. Refer to the Postini
Automated Batch Service Manual for an explanation of each field.

Possible options are.



Postini will return a maximum of 15,000 results
Return a list of orgs possibly filtered and sorted . Refer to the Postini Automated Batch Service Manual for an explanation of each field . Possible options are . Postini will return a maximum of 15 000 results
def list_orgs( query_string = 'ALL', options = {} )
      valid_options = {}
      [ :targetOrg, :sort, :start, :end ].each do |k|
        valid_options[k] = options[k] if options.has_key?(k)
      end
      valid_options[:childorgs] = ( options[:childorgs] ? '1' : '0' ) if options.has_key?(:childorgs)
      valid_options[:fields] = options[:fields].join('|') if options.has_key?(:fields)
      response = invoke("aut:listorgs") do |message|
        build_auth!( message )
        message.add('queryString', query_string)
        message.add('queryParams') do |q|
          valid_options.each do |k,v|
            q.add( k.to_s, v )
          end
        end
      end
      parse_list_orgs_results( response.document.xpath('//tns:listorgsResponse', tns).first )
    end
def list_orgs ( query_string = 'ALL' , options = { } ) valid_options = { } [ :targetOrg , :sort , :start , :end ] . each do | k | valid_options [ k ] = options [ k ] if options . has_key? ( k ) end valid_options [ :childorgs ] = ( options [ :childorgs ] ? '1' : '0' ) if options . has_key? ( :childorgs ) valid_options [ :fields ] = options [ :fields ] . join ( '|' ) if options . has_key? ( :fields ) response = invoke ( "aut:listorgs" ) do | message | build_auth! ( message ) message . add ( 'queryString' , query_string ) message . add ( 'queryParams' ) do | q | valid_options . each do | k , v | q . add ( k . to_s , v ) end end end parse_list_orgs_results ( response . document . xpath ( '//tns:listorgsResponse' , tns ) . first ) end
Return a list of orgs, possibly filtered and sorted.
Return a list of orgs possibly filtered and sorted .
# vanilla copes # boolean copies
query_string
<not_specific>
options
<not_specific>