Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit7cfbbc3

Browse files
committed
Merge pull request#549 from github/stargazer-timestamps
Documenting timestamps available on stargazers
2 parents47835d3 +87e6979 commit7cfbbc3

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

‎content/v3/activity/starring.md‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ for more details.
3030
<%= headers 200,:pagination => default_pagination_rels %>
3131
<%= json(:user) { |h|[h] } %>
3232

33+
###Alternative response with star creation timestamps
34+
35+
You can also find out_when_ stars were created by passing the following custom[media type](/v3/media/) via the`Accept` header:
36+
37+
Accept: application/vnd.github.v3.star+json
38+
39+
<%= headers 200,:pagination => default_pagination_rels %>
40+
<%= json(:stargazer_with_timestamps) { |hash|[hash] } %>
41+
3342
##List repositories being starred
3443

3544
List repositories being starred by a user.
@@ -52,13 +61,12 @@ Name | Type | Description
5261
<%= headers 200,:pagination => default_pagination_rels %>
5362
<%= json(:repo) { |h|[h] } %>
5463

55-
##List repositories being starred with star creation timestamps
64+
###Alternative response with star creation timestamps
5665

57-
You can also find out_when_ stars were created by passing the following customcontent-type via the`Accept` header.
66+
You can also find out_when_ stars were created by passing the following custom[mediatype](/v3/media/) via the`Accept` header:
5867

5968
Accept: application/vnd.github.v3.star+json
6069

61-
###Response
6270
<%= headers 200,:pagination => default_pagination_rels %>
6371
<%= json(:starred_repo) { |hash|[hash] } %>
6472

‎lib/resources.rb‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,11 @@ def fetch_content(key)
279279
"repo"=>REPO
280280
}
281281

282+
STARGAZER_WITH_TIMESTAMPS ||={
283+
"starred_at"=>"2011-01-16T19:06:43Z",
284+
"user"=>USER
285+
}
286+
282287
TAG ||={
283288
"name"=>"v0.1",
284289
"commit"=>{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp