コード例 #1
0
        public void SetVar()
        {
            var asana = new Asana.Asana();

            asana.SetStringVar("name", "value");
            Assert.AreEqual("value", asana.GetStringVar("name"));
        }
コード例 #2
0
        public void GetTasks()
        {
            var asana = new Asana.Asana();

            asana.SetToken("YOUR_TOKEN");
            asana.SetStringVar("{project_gid}", "BIG_NUMBER");
            var tasks = asana.Get("projects/{project_gid}/tasks", true);

            Assert.IsTrue(tasks.Length > 0);
        }
コード例 #3
0
        public void GetProjects()
        {
            var asana = new Asana.Asana(false);

            asana.SetToken("YOUR_TOKEN");
            asana.SetStringVar("{project_gid}", "BIG_NUMBER");
            asana.SetBooleanVar("pretty", true);
            var tasks = asana.Get("projects");

            Assert.IsTrue(tasks.Length > 0);
        }