Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            //RootObject json_forms = getForms().Result;



            typeFormApi tp           = new typeFormApi("C4yr7FzMfPjiXd6QRMt1ypPT1tUWMbYvk4UQgxdAnrmL");
            Formulaire1 formulaire_1 = new Formulaire1();
            Formulaire2 formulaire_2 = new Formulaire2();


            //List<string> d= getEntreprisesRep();
            formulaire_1.json_answers = typeFormApi.getAnswers(tp.token, "IJSPAB").Result;

            formulaire_2.json_answers = typeFormApi.getAnswers(tp.token, "OeFASu").Result;

            //InfoEntreprise l = formulaire_1.getInfosEntrepriseByNom("SCIC G5-T FRANCE ( Groupement de 5 réseaux en lien avec les terrioitres )");

            //tp.getQuestions("IJSPAB");

            foreach (InfoEntreprise info in formulaire_1.getInfoEntreprises())
            {
                Console.WriteLine(info.activites);
            }

            InfoEntreprise t = FormulaireAbstract.getInfoEntrepriseForm1Form2(formulaire_1, formulaire_2, "edeni ");

            //Console.WriteLine(t.effectif);
            Console.ReadKey();
        }
Ejemplo n.º 2
0
            static void Mymain(string[] args)
            {
                //RootObject json_forms = getForms().Result;

                typeFormApi.getForms();
                FormTypeForm.RootObject json_form = typeFormApi.getForm(typeFormApi.id_form);
                //List<string> d= getEntreprisesRep();

                //

                typeFormApi.json_answers = typeFormApi.getAnswers(typeFormApi.id_form);

                //AnswerTypeForm.RootObject json_answers = typeFormApi.getAnswers(typeFormApi.id_form);

                /*foreach (string f in getEntreprisesRep("5f1ccad09db138f184034ce06ba87f74", "vT94Udur6LMJ"))
                 * {
                 *  Console.WriteLine(f);
                 * }*/


                //Console.WriteLine(getNomEntreprise("5f1ccad09db138f184034ce06ba87f74"));
                InfoEntreprise info = typeFormApi.getInfos("5f1ccad09db138f184034ce06ba87f74");


                Console.WriteLine(info.getNom());
                // getNomEntreprises(id_question_nom_entreprise);
                //getEntreprisesRep();
                //getInfoEntreprise("5f1ccad09db138f184034ce06ba87f74", "KA17sOqFVIRs");
                //getQuestions();
                //   getInfos("5f1ccad09db138f184034ce06ba87f74");
                //getQuestions();
                //getNomEntreprise("KA17sOqFVIRs", "5f1ccad09db138f184034ce06ba87f74");
                Console.ReadKey();
            }