git.cweiske.de
/
stouyapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
75dd5e0
)
build current_gamer json
author
Christian Weiske
<cweiske@cweiske.de>
Sat, 4 Jan 2020 23:50:20 +0000
(
00:50
+0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Sat, 4 Jan 2020 23:50:20 +0000
(
00:50
+0100)
bin/import-game-data.php
patch
|
blob
|
history
diff --git
a/bin/import-game-data.php
b/bin/import-game-data.php
index d4033af28cdf1c91d9e148618bf6e79dc3559317..5486ef5d13d2806251ecab4d8ee0d4f5c60d8f75 100755
(executable)
--- a/
bin/import-game-data.php
+++ b/
bin/import-game-data.php
@@
-113,6
+113,12
@@
foreach ($developers as $developer) {
. '/products/index.htm',
buildDeveloperProducts($developer['products'], $developer['info'])
);
. '/products/index.htm',
buildDeveloperProducts($developer['products'], $developer['info'])
);
+ writeJson(
+ //index.htm does not need a rewrite rule
+ 'api/v1/developers/' . $developer['info']->uuid
+ . '/current_gamer',
+ buildDeveloperCurrentGamer()
+ );
}
writeJson('api/v1/discover-data/discover.json', buildDiscover($games));
}
writeJson('api/v1/discover-data/discover.json', buildDiscover($games));
@@
-432,6
+438,16
@@
function buildDetails($game)
];
}
];
}
+function buildDeveloperCurrentGamer()
+{
+ return [
+ 'gamer' => [
+ 'uuid' => '00702342-0000-1111-2222-c3e1500cafe2',
+ 'username' => 'stouyapi',
+ ],
+ ];
+}
+
/**
* For /api/v1/developers/xxx/products/?only=yyy
*/
/**
* For /api/v1/developers/xxx/products/?only=yyy
*/