public static void groupsApiTest(String username, String password, String auth) { System.Diagnostics.Debug.WriteLine("\n\nSTART OF GROUPSAPI TEST\n\n"); vestorly.api.GroupsApi groupsApi = new vestorly.api.GroupsApi(); // GET vestorly.model.Groups myGroups = groupsApi.FindGroups(auth); System.Diagnostics.Debug.WriteLine("GET: " + myGroups); // GET{ID} foreach (vestorly.model.Group group in myGroups.groups) { vestorly.model.Groupresponse newGroup = groupsApi.FindGroupByID(auth, group.id); System.Diagnostics.Debug.WriteLine("GET{ID}: " + newGroup); } // vestorly.model.Post vestorly.model.GroupInput groupInput = new vestorly.model.GroupInput(); groupInput.name = ("NAME" + currentTime); vestorly.model.Groupresponse createdGroup = groupsApi.CreateGroup(auth, groupInput); System.Diagnostics.Debug.WriteLine("POST: " + createdGroup); // PUT groupInput.name = ("NAME" + currentTime); groupInput.id = (createdGroup.group.id); vestorly.model.Groupresponse updatedGroup = groupsApi.UpdateGroupById(auth, createdGroup.group.id, groupInput); System.Diagnostics.Debug.WriteLine("PUT: " + updatedGroup); // DELETE vestorly.model.Groupresponse deletedGroup = groupsApi.DeleteGroup(auth, updatedGroup.group.id); System.Diagnostics.Debug.WriteLine("DELETE: " + deletedGroup); System.Diagnostics.Debug.WriteLine("\n\nEND OF GROUPSAPI TEST\n\n"); }