GistCommits() публичный статический Метод

Returns the Uri for the commits for the specified gist.
public static GistCommits ( string id ) : Uri
id string The id of the gist
Результат System.Uri
Пример #1
0
        public Task <IReadOnlyList <GistHistory> > GetAllCommits(string id, ApiOptions options)
        {
            Ensure.ArgumentNotNullOrEmptyString(id, nameof(id));
            Ensure.ArgumentNotNull(options, nameof(options));

            return(ApiConnection.GetAll <GistHistory>(ApiUrls.GistCommits(id), options));
        }
Пример #2
0
        /// <summary>
        /// List gist commits
        /// </summary>
        /// <remarks>
        /// http://developer.github.com/v3/gists/#list-gists-commits
        /// </remarks>
        /// <param name="id">The id of the gist</param>
        public Task <IReadOnlyList <GistHistory> > GetAllCommits(string id)
        {
            Ensure.ArgumentNotNullOrEmptyString(id, "id");

            return(ApiConnection.GetAll <GistHistory>(ApiUrls.GistCommits(id)));
        }