Beispiel #1
0
        static void Main(string[] args)
        {
            Authenticator auth = Authenticator.Instance;

            auth.Authenticate(authUrl, clientId, clientSecret);
            foreach (Endpoint e in auth.GetEndpoints(providerId))
            {
                XPress xPress = new XPress(e.href);

                if (xPress.GetXLea(refId).Data != null)
                {
                    //foreach (XLeaType l in xPress.GetXLeas(refId).Data)
                    //{
                    XLeaType l = xPress.GetXLea(refId).Data;
                    Console.WriteLine("leaRefId: " + l.refId);
                    Console.WriteLine("leaName: " + l.leaName);
                    //}
                }
            }


            Console.Read();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Authenticator auth = Authenticator.Instance;

            auth.Authenticate(authUrl, clientId, clientSecret);
            foreach (Endpoint e in auth.GetEndpoints(providerId))
            {
                XPress xPress = new XPress(e.href);

                //XLeaType l = xPress.GetXLea("beds", "738121").getData();
                XLeaType l = xPress.GetXLea("local", "BT101").Data;
                Console.WriteLine(l.refId);
                Console.WriteLine(l.localId);
                Console.WriteLine(l.stateProvinceId);
                Console.WriteLine(l.leaName);
            }


            Console.Read();
        }