public async Task ItemTest() { Podio _Podio; StaticAuthStore _AuthStore; _AuthStore = new StaticAuthStore(); _Podio = new Podio(Settings.ClientId, Settings.ClientSecret, _AuthStore); await _Podio.AuthenticateWithApp(Settings.AppId, Settings.AppToken); var items = await _Podio.ItemService.FilterItems(Settings.AppId); Assert.IsNotNull(items); }
public async Task OrgTest() { Podio _Podio; StaticAuthStore _AuthStore; _AuthStore = new StaticAuthStore(); _Podio = new Podio(Settings.ClientId, Settings.ClientSecret, _AuthStore); await _Podio.AuthenticateWithPassword("username", "password"); Assert.IsTrue(_Podio.IsAuthenticated()); var orgs = await _Podio.OrganizationService.GetOrganizations(); Assert.IsNotNull(orgs); }