Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Guild Wars 2 API

Manatsawin Hanmongkolchai
December 04, 2015
120

Guild Wars 2 API

Datacom class

Manatsawin Hanmongkolchai

December 04, 2015
Tweet

Transcript

  1. API by Type • Static Data API • Dynamic Data

    API • Account API (February 24th, 2015) • Documentation at https://wiki.guildwars2.com/wiki/API:Main https://forum-en.guildwars2.com/forum/community/api
  2. • Contains game data that remain the same except the

    game patch has been applied • Example: Items, Materials, Maps Static Data API
  3. • Return information about items that were discovered by players

    in the game. • https://api.guildwars2.com/v2/items/30689 /v2/items { "name": "Eternity", "type": "Weapon", "level": 80, "rarity": "Legendary", … }
  4. • Contains data that usually change due to player activities

    or by the system. • Example: Guilds, Daily Achievements, World vs. World, Trading Post Dynamic Data API
  5. • Return a details about a guild. • https://api.guildwars2.com/v1/guild_details?guild_id=75D0036F- C182-E411-863C-E4115BDF481D

    /v1/guild_details { "guild_name": "Player Authority", "tag": "PA", "emblem": { "background_id": 13, "foreground_id": 56, … } }
  6. • Introduced on February 24th, 2015 • New endpoints releasing

    constantly • Requires authentication ◦ Request token at https://account.arena.net/applications (No OAuth login flow) Account API
  7. 496 28 46 • Return amount of currencies owned by

    the token owner account • https://api.guildwars2.com/v2/account/wallet?access_token=.... /v2/account/wallet [ {"id": 1,"value": 4962846}, {"id": 2,"value": 2923620}, {"id": 3,"value": 159}, {"id": 5,"value": 6735}, … ] 2,923,620 159 6,735
  8. • http://gw.zweistein.cz/gw2price/ • Use several API chained together ◦ Telize

    GeoIP ◦ Rest Countries Country Information ◦ Rate Exchange API ◦ GW2Spidy Gem to Gold Price ▪ Queries from Guild Wars 2 API ◦ GW2Spidy Item Search API • Bootleg fixed version: http://madoka.whs.in.th/gw2price/ GW2 Real Money Price
  9. API by Version • Version 1 https://api.guildwars2.com/v1/ • Version 2

    (July 16th, 2014) https://api.guildwars2.com/v2/ Documentation at https://wiki.guildwars2.com/wiki/API:Main
  10. • Return account information • https://api.guildwars2.com/v2/account?access_token=.... /v2/account { "id": "4243077A-51A4-E411-A22A-78E7D1936EF0",

    "name": "awkwin.3196", "world": 1016, "guilds": ["6E8FB0A7-3291-E411-9621-AC162DAE8ACD", …], "created": "2015-01-25T05:18:00Z", "access": "HeartOfThorns" }
  11. • Return information about that character • Character must be

    owned by the access token owner • https://api.guildwars2.com/v2/characters/<name>?access_token=.... /v2/characters/<name> { "name": "Mymap", "race": "Charr", "gender": "Male", "profession": "Warrior", "level": 80, "guild": "75D0036F-C182-E411-863C-E4115BDF481D", … }