public Cin7Api(IUser user) { client = new Cin7ApiClient(new Cin7ApiSettings(), user, new RateLimiter()); Contacts = new ContactsEndpoint(client); Branches = new BranchesEndpoint(client); ProductCategories = new ProductCategoriesEndpoint(client); Products = new ProductsEndpoint(client); ProductOptions = new ProductOptionsEndpoint(client); SerialNumbers = new SerialNumbersEndpoint(client); SalesOrders = new SalesOrdersEndpoint(client); Payments = new PaymentsEndpoint(client); Quotes = new QuotesEndpoint(client); PurchaseOrders = new PurchaseOrdersEndpoint(client); Stock = new StockEndpoint(client); BranchTransfers = new BranchTransfersEndpoint(client); Adjustments = new AdjustmentsEndpoint(client); Vouchers = new VouchersEndpoint(client); CreditNotes = new CreditNotesEndpoint(client); BomMasters = new BomMastersEndpoint(client); ProductionJobs = new ProductionJobsEndpoint(client); Users = new UsersEndpoint(client); }
public OAuthGoodreadsClient(string apiKey, string apiSecret, string accessToken, string accessSecret) : base(apiKey, apiSecret, accessToken, accessSecret) { Authors = new AuthorsEnpoint(_connection); AuthorsFollowing = new AuthorsFollowingEndpoint(_connection); Books = new BooksEndpoint(_connection); Comments = new CommentsEndpoint(_connection); Events = new EventsEndpoint(_connection); Followers = new FollowersEndpoint(_connection); Friends = new FriendsEndpoint(_connection); Groups = new GroupsEndpoint(_connection); Notifications = new NotificationsEndpoint(_connection); OwnedBooks = new OwnedBooksEndpoint(_connection); Quotes = new QuotesEndpoint(_connection); ReadStatuses = new ReadStatusesEndpoint(_connection); Recommendations = new RecommendationsEndpoint(_connection); Reviews = new ReviewsEndpoint(_connection); Series = new SeriesEndpoint(_connection); Shelves = new ShelvesEndpoint(_connection); Topics = new TopicsEndpoint(_connection); Updates = new UpdatesEndpoint(_connection); Users = new UsersEndpoint(_connection); UserStatuses = new UserStatusesEndpoint(_connection); }