Example #1
0
        public List <Datum> ProjectsFind(string gidOfWS)
        {
            string  connectionLine;
            Connect conection = new Connect();

            connectionLine = "https://app.asana.com/api/1.0/workspaces/" + gidOfWS + "/projects";
            string result = conection.ConnectToLinq(connectionLine);
            DeserializeThiseJson deser = new DeserializeThiseJson();
            //*******только для одного запроса про пользователя**********
            RootObjectUsers meClass = new RootObjectUsers();

            meClass = (RootObjectUsers)deser.DeserializeMe(result, meClass);
            return(meClass.data);
        }
Example #2
0
        public List <Datum> UsersFind()
        {
            string          connectionLine = "https://app.asana.com/api/1.0/users";
            Connect         conection      = new Connect();
            string          result         = conection.ConnectToLinq(connectionLine);
            RootObjectUsers meClassUSD     = new RootObjectUsers();

            try
            {
                DeserializeThiseJson deser = new DeserializeThiseJson();
                meClassUSD = (RootObjectUsers)deser.DeserializeMe(result, meClassUSD);
            }
            catch (Exception e)
            {
            }
            return(meClassUSD.data);
        }