Skip to content
Snippets Groups Projects

Recuperation ical etudiant hyper planning

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by QUELEN bastien
    sync.rb 519 B
    Avec le gem ruby Savon
    
    $hyper_planning = Savon.client(wsdl: "http://host-hp.fr/hpsw/wsdl/RpcEncoded", basic_auth: ["xxx", "xxxx"], log_level: :debug)
    
    etudiants_id_response = $hyper_planning.call(:tous_les_etudiants)
        etudiants_id_response.body[:tous_les_etudiants_response][:return][:item].each do |etudiant_id|  
        ical_response = $hyper_planning.call(:url_ical_etudiant, message: { a_etudiant: etudiant_id.to_i })
        puts "https://edt.esiea.fr/" + ical_response.body[:url_ical_etudiant_response][:return]
    end
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment