Skip to content

Commit

Permalink
Add /v2/account/recipes.
Browse files Browse the repository at this point in the history
Additionally add notes to /v2/characters recipe references indicating that
/v2/account/recipes should likely be used instead (since recipe unlocks
were changed to be account-bound).
  • Loading branch information
lye committed Dec 1, 2016
1 parent 8bdd045 commit 78a648a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions v2/account/recipes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Authenticated endpoint that dumps an account's recipe
// unlocks. Requires the "account" and "unlocks" permissions.

// GET /v2/account/recipes?access_token=$APIKEY

[ 111, 112, 113, /* ... */ ]
3 changes: 2 additions & 1 deletion v2/characters/characters.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
// * bags: which inventory bags the character has equipped, and their contents.
// * recipes: the recipe ids for recipes unlocked by this character. Will be
// [] if the character has unlocked no recipes. Does not include recipes
// marked with the AutoLearned flag.
// marked with the AutoLearned flag. NOTE: recipe unlocks were made account-
// wide; consider using /v2/account/recipes instead of this.
//
{
name: "Hello",
Expand Down
4 changes: 4 additions & 0 deletions v2/characters/recipes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// GET /v2/characters/Hello/recipes
// Authorization: Bearer oauth2-token
// Requires "account", "characters" and "inventories" permissions.

// NOTE: This endpoint pre-dates account-wide recipe unlocks;
// consider using /v2/account/recipes instead.

{
"recipes" : [
1, 2, 3
Expand Down

0 comments on commit 78a648a

Please sign in to comment.