예제 #1
0
        protected BasecampApiBase(string accountId, string username, string password, IResponseCache responseCache)
        {
            Username  = username;
            Password  = password;
            AccountId = accountId;

            ResponseCache = responseCache;
            Projects      = new ProjectsEndpoint(ResponseCache);
            People        = new PeopleEndpoint(ResponseCache);
            Todos         = new TodosEndpoint(ResponseCache);
            Events        = new EventsEndpoint(ResponseCache);
        }
 public UnauthorizedGoodreadsClient(string apiKey, string apiSecret, string accessToken, string accessSecret)
     : base(apiKey, apiSecret, accessToken, accessSecret)
 {
     Authors      = new AuthorsEnpoint(_connection);
     Books        = new BooksEndpoint(_connection);
     Shelves      = new ShelvesEndpoint(_connection);
     Users        = new UsersEndpoint(_connection);
     Reviews      = new ReviewsEndpoint(_connection);
     Series       = new SeriesEndpoint(_connection);
     Events       = new EventsEndpoint(_connection);
     Groups       = new GroupsEndpoint(_connection);
     UserStatuses = new UserStatusesEndpoint(_connection);
     ReadStatuses = new ReadStatusesEndpoint(_connection);
     Comments     = new CommentsEndpoint(_connection);
     Topics       = new TopicsEndpoint(_connection);
 }
 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);
 }
예제 #4
0
            public async Task GetByCriteria()
            {
                var events = await EventsEndpoint.GetEvents(countryCode : "US", postalCode : 8540);

                Assert.NotNull(events);
            }
예제 #5
0
            public async Task GetNearest()
            {
                var events = await EventsEndpoint.GetEvents();

                Assert.NotNull(events);
            }
예제 #6
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="configuration"></param>
 public EventService(IErtisAuthConfiguration configuration) : base(configuration)
 {
     this.EventsEndpoint = new EventsEndpoint(this.BaseUrl);
 }