public void TokenBasedAuthTest() { FreshbooksApi api = new FreshbooksApi(UserSettings.FreshbooksAccountName, UserSettings.ConsumerKey); api.UseLegacyToken(UserSettings.UserToken); api.Staff.Current(); }
static FreshbooksApi CreateDefault() { FreshbooksApi api = new FreshbooksApi(UserSettings.FreshbooksAccountName, UserSettings.ConsumerKey); api.UseLegacyToken(UserSettings.UserToken); return api; }