Esempio n. 1
0
        public async Task RsvpForUsesCorrectUrl()
        {
            var request = new GetRsvpsRequest("tech-nottingham", "258091947")
            {
                Response   = RsvpStatus.YesAndNo,
                OrderBy    = RsvpOrderBy.Social,
                Descending = true
            };

            var querystring = "response=yes%2Cno&order=social&desc=true";
            var options     = new MeetupClientOptions
            {
                Client = FakeHttpClient.AssertUrl("/tech-nottingham/events/258091947/rsvps?photo-host=public&" + querystring)
            };

            var meetup = MeetupClient.WithApiToken("testToken", options);
            await meetup.Rsvps.For(request);
        }
Esempio n. 2
0
 public Task <MeetupResponse <Rsvp[]> > For(GetRsvpsRequest request)
 {
     return(MeetupRequestMethods.GetWithRequestAsync <Rsvp[]>($"{request.GroupName}/events/{request.EventId}/rsvps", _options, request));
 }