ForkGist() public static method

Returns the Uri for the forks for the specified gist.
public static ForkGist ( string id ) : Uri
id string The id of the gist
return System.Uri
Ejemplo n.º 1
0
        public Task <IReadOnlyList <GistFork> > GetAllForks(string id, ApiOptions options)
        {
            Ensure.ArgumentNotNullOrEmptyString(id, nameof(id));
            Ensure.ArgumentNotNull(options, nameof(options));

            return(ApiConnection.GetAll <GistFork>(ApiUrls.ForkGist(id), options));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a fork of a gist
 /// </summary>
 /// <remarks>
 /// http://developer.github.com/v3/gists/#fork-a-gist
 /// </remarks>
 /// <param name="id">The id of the gist to fork</param>
 public Task <Gist> Fork(string id)
 {
     return(ApiConnection.Post <Gist>(ApiUrls.ForkGist(id), new object()));
 }
Ejemplo n.º 3
0
        /// <summary>
        /// List gist forks
        /// </summary>
        /// <remarks>
        /// http://developer.github.com/v3/gists/#list-gists-forks
        /// </remarks>
        /// <param name="id">The id of the gist</param>
        public Task <IReadOnlyList <GistFork> > GetAllForks(string id)
        {
            Ensure.ArgumentNotNullOrEmptyString(id, "id");

            return(ApiConnection.GetAll <GistFork>(ApiUrls.ForkGist(id)));
        }