/// <summary> /// Add an event upsert to the batch. /// </summary> /// <param name="calendarId"> /// The ID of the calendar the event should be upserted to, must not be /// empty. /// </param> /// <param name="eventRequest"> /// The builder from which to create a <see cref="UpsertEventRequest"/> /// entry, must not be null. /// </param> /// <exception cref="ArgumentException"> /// Thrown if <paramref name="calendarId"/> is empty or if /// <paramref name="eventRequest"/> is null. /// </exception> /// <returns> /// A reference to the modified builder. /// </returns> public BatchRequestBuilder UpsertEvent(string calendarId, UpsertEventRequest eventRequest) { Preconditions.NotNull("eventRequest", eventRequest); return(this.UpsertEvent(calendarId, Builder.Wrap(eventRequest))); }
/// <summary> /// Creates a new <see cref="AuthorizationUrlBuilder"/> seeded with your /// client configuration. /// </summary> /// <param name="redirectUri"> /// The URI to redirect the user's response for the authorization /// request to, must not be empty. /// </param> /// <returns> /// Returns a new <see cref="AuthorizationUrlBuilder"/>. /// </returns> /// <remarks> /// The read_account, read_events, create_event, and delete_event scopes /// are requested by default. /// </remarks> /// <exception cref="System.ArgumentException"> /// Thrown if <paramref name="redirectUri"/> is null or empty. /// </exception> public AuthorizationUrlBuilder GetAuthorizationUrlBuilder(string redirectUri) { Preconditions.NotEmpty("redirectUri", redirectUri); return(new AuthorizationUrlBuilder(this.clientId, this.urlProvider, redirectUri)); }