UsersGists() public static method

Returns the Uri for all gists for a given user.
public static UsersGists ( string user ) : Uri
user string The user to search for
return Uri
コード例 #1
0
        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));
        }
コード例 #2
0
        /// <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()));
        }
コード例 #3
0
        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));
        }
コード例 #4
0
        /// <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)));
        }