public Task <IReadOnlyList <Gist> > GetAllForUser(string user, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(user, nameof(user)); Ensure.ArgumentNotNull(options, nameof(options)); return(ApiConnection.GetAll <Gist>(ApiUrls.UsersGists(user), options)); }
/// <summary> /// List a user's gists /// </summary> /// <remarks> /// http://developer.github.com/v3/gists/#list-gists /// </remarks> /// <param name="user">The user</param> /// <param name="since">Only gists updated at or after this time are returned</param> public Task <IReadOnlyList <Gist> > GetAllForUser(string user, DateTimeOffset since) { Ensure.ArgumentNotNull(user, "user"); var request = new GistRequest(since); return(ApiConnection.GetAll <Gist>(ApiUrls.UsersGists(user), request.ToParametersDictionary())); }
public Task <IReadOnlyList <Gist> > GetAllForUser(string user, DateTimeOffset since, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(user, nameof(user)); Ensure.ArgumentNotNull(options, nameof(options)); var request = new GistRequest(since); return(ApiConnection.GetAll <Gist>(ApiUrls.UsersGists(user), request.ToParametersDictionary(), options)); }
/// <summary> /// List a user's gists /// </summary> /// <remarks> /// http://developer.github.com/v3/gists/#list-gists /// </remarks> /// <param name="user">The user</param> public Task <IReadOnlyList <Gist> > GetAllForUser(string user) { Ensure.ArgumentNotNull(user, "user"); return(ApiConnection.GetAll <Gist>(ApiUrls.UsersGists(user))); }