public static void sourcesApiTest(String username, String password, String auth) { System.Diagnostics.Debug.WriteLine("\n\nSTART OF SOURCESAPI TEST\n\n"); vestorly.api.SourcesApi sourcesApi = new vestorly.api.SourcesApi(); // GET vestorly.model.Sources mySources = sourcesApi.FindSources(auth); System.Diagnostics.Debug.WriteLine("GET: " + mySources); // GET{ID} foreach (vestorly.model.Source source in mySources.sources) { System.Diagnostics.Debug.WriteLine(source.id); System.Diagnostics.Debug.WriteLine("GET{ID}: " + sourcesApi.GetSourceByID(auth, source.id)); } //// POST vestorly.model.SourceInput sourceInput = new vestorly.model.SourceInput(); sourceInput.name = ("asdfasdf" + currentTime); sourceInput.rssPublisher = ("RSS asdfadfdf" + currentTime); sourceInput.url = ("asdfdfsdfasfs" + currentTime); System.Diagnostics.Debug.WriteLine(sourceInput); vestorly.model.Sourceresponse createdPost = sourcesApi.CreateSource(auth, sourceInput); System.Diagnostics.Debug.WriteLine("POST: " + createdPost); // PUT sourceInput.name = ("NAME" + currentTime); sourceInput.rssPublisher = ("RSS PUBLISHER" + currentTime); sourceInput.url = ("URL" + currentTime); System.Diagnostics.Debug.WriteLine("PUT: " + sourcesApi.UpdateSourceByID(auth, "537507517b86a6000200044a", sourceInput)); System.Diagnostics.Debug.WriteLine("\n\nEND OF SOURCESAPI TEST\n\n"); }