public static RepositoryTrafficPaths ( long repositoryId ) : Uri | ||
repositoryId | long | The id of the repository |
Résultat | Uri |
/// <summary> /// List the top 10 popular contents over the last 14 days /// </summary> /// <remarks>https://developer.github.com/v3/repos/traffic/#list-paths</remarks> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> public Task <IReadOnlyList <RepositoryTrafficPath> > GetAllPaths(string owner, string name) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(name, "name"); return(ApiConnection.GetAll <RepositoryTrafficPath>(ApiUrls.RepositoryTrafficPaths(owner, name), AcceptHeaders.RepositoryTrafficApiPreview)); }
public Task <IReadOnlyList <RepositoryTrafficPath> > GetAllPaths(string owner, string name) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); return(ApiConnection.GetAll <RepositoryTrafficPath>(ApiUrls.RepositoryTrafficPaths(owner, name))); }
/// <summary> /// List the top 10 popular contents over the last 14 days /// </summary> /// <remarks>https://developer.github.com/v3/repos/traffic/#list-paths</remarks> /// <param name="repositoryId">The owner of the repository</param> public Task <IReadOnlyList <RepositoryTrafficPath> > GetAllPaths(long repositoryId) { return(ApiConnection.GetAll <RepositoryTrafficPath>(ApiUrls.RepositoryTrafficPaths(repositoryId), AcceptHeaders.RepositoryTrafficApiPreview)); }
public Task <IReadOnlyList <RepositoryTrafficPath> > GetAllPaths(long repositoryId) { return(ApiConnection.GetAll <RepositoryTrafficPath>(ApiUrls.RepositoryTrafficPaths(repositoryId))); }