Download the PHP package gw2treasures/gw2api without Composer
On this page you can find all versions of the php package gw2treasures/gw2api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gw2treasures/gw2api
More information about gw2treasures/gw2api
Files in gw2treasures/gw2api
Package gw2api
Short Description PHP wrapper for the Guild Wars 2 API.
License MIT
Homepage https://github.com/GW2Treasures/gw2api
Informations about the package gw2api
gw2treasures/gw2api
PHP wrapper for the Guild Wars 2 API.
Features
- Support for all v2 endpoints (including authenticated)
- Parallel requests for pagination and bulk expansion
Requirements
- PHP >= 7.2
Setup
Using composer (recommended)
If you haven't included composers autoloader yet, you will have to add this before being able to use the GW2 API Wrapper.
Using the gw2api.phar archive
You need to download the latest gw2api.phar and the guzzle.phar of the latest 7.x version of the guzzle library and place both files in your project directory. Now you can include both files to start using the GW2 API wrapper.
Examples
Usage
For all examples it is assumed that you have a variable $api = new GW2Api()
.
Endpoint Overview
API Endpoint | Class† Instance |
Flags‡ | |
---|---|---|---|
/v2/account | Account\AccountEndpoint GW2Api::account() |
🔒 | |
/v2/account/achievements | Account\AchievementEndpoint GW2Api::account()->achievement() |
🔒 | |
/v2/account/bank | Account\BankEndpoint GW2Api::account()->bank() |
🔒 | |
/v2/account/dyes | Account\DyeEndpoint GW2Api::account()->dyes() |
🔒 | |
/v2/account/finishers | Account\FinisherEndpoint GW2Api::account()->finishers() |
🔒 | |
/v2/account/inventory | Account\InventoryEndpoint GW2Api::account()->inventory() |
🔒 | |
/v2/account/masteries | Account\MasteryEndpoint GW2Api::account()->masteries() |
🔒 | |
/v2/account/materials | Account\MaterialEndpoint GW2Api::account()->materials() |
🔒 | |
/v2/account/minis | Account\MiniEndpoint GW2Api::account()->minis() |
🔒 | |
/v2/account/recipes | Account\RecipeEndpoint GW2Api::account()->recipes() |
🔒 | |
/v2/account/skins | Account\SkinEndpoint GW2Api::account()->skins() |
🔒 | |
/v2/account/titles | Account\TitleEndpoint GW2Api::account()->titles() |
🔒 | |
/v2/account/wallet | Account\WalletEndpoint GW2Api::account()->wallet() |
🔒 | |
/v2/achievements | Achievement\AchievementEndpoint GW2Api::achievements() |
📦🌏 | |
/v2/achievements/categories | Achievement\CategoryEndpointGW2Api::achievements()->categories() |
📦🌏 | |
/v2/achievements/daily | Achievement\DailyEndpoint GW2Api::achievements()->daily() |
||
/v2/achievements/daily/tomorrow | Achievement\DailyTomorrowEndpoint GW2Api::achievements()->daily()->tomorrow() |
||
/v2/achievements/groups | Achievement\GroupEndpoint GW2Api::achievements()->groups() |
📦🌏 | |
/v2/backstory/answers | Backstory\AnswerEndpoint GW2Api::backstory()->answers() |
📦🌏 | |
/v2/backstory/questions | Backstory\QuestionEndpoint GW2Api::backstory()->questions() |
📦🌏 | |
/v2/build | Build\BuildEndpoint GW2Api::build() |
||
/v2/characters | Character\CharacterEndpoint GW2Api::characters() |
🔒📦 | |
/v2/characters/:id/backstory | Character\BackstoryEndpoint GW2Api::characters()->backstoryOf() |
🔒 | |
/v2/characters/:id/core | Character\CoreEndpoint GW2Api::characters()->coreOf() |
🔒 | |
/v2/characters/:id/crafting | Character\CraftingEndpoint GW2Api::characters()->craftingOf() |
🔒 | |
/v2/characters/:id/equipment | Character\EquipmentEndpoint GW2Api::characters()->equipmentOf() |
🔒 | |
/v2/characters/:id/heropoints | Character\HeropointEndpoint GW2Api::characters()->heropointsOf() |
🔒 | |
/v2/characters/:id/inventory | Character\InventoryEndpoint GW2Api::characters()->inventoryOf() |
🔒 | |
/v2/characters/:id/recipes | Character\RecipeEndpoint GW2Api::characters()->recipesOf() |
🔒 | |
/v2/characters/:id/skills | Character\SkillEndpoint GW2Api::characters()->skillsOf() |
🔒 | |
/v2/characters/:id/specializations | Character\SpecializationEndpoint GW2Api::characters()->specializationsOf() |
🔒 | |
/v2/characters/:id/training | Character\TrainingEndpoint GW2Api::characters()->trainingOf() |
🔒 | |
/v2/colors | Color\ColorEndpoint GW2Api::colors() |
📦🌏 | |
/v2/commerce/exchange | Commerce\ExchangeEndpoint GW2Api::commerce()->exchange() |
||
/v2/commerce/listings | Commerce\ListingEndpoint GW2Api::commerce()->listings() |
📦 | |
/v2/commerce/prices | Commerce\PriceEndpoint GW2Api::commerce()->prices() |
📦 | |
/v2/commerce/transactions | Commerce\Transaction\TransactionEndpoint GW2Api::commerce()->transactions() |
🔒📄 | |
/v2/continents | Continent\ContinentEndpoint GW2Api::continents() |
📦🌏 | |
/v2/currencies | Currency\CurrencyEndpoint GW2Api::currencies() |
📦🌏 | |
/v2/novelties | Novelty\NoveltyEndpoint GW2Api::novelties() |
📦🌏 | |
/v2/emblem | Emblem\EmblemEndpoint GW2Api::emblem() |
||
disabled | 🌏🚫 | ||
disabled | 🚫 | ||
/v2/files | File\FileEndpoint GW2Api::files() |
📦 | |
/v2/finishers | Finisher\FinisherEndpoint GW2Api::finishers() |
📦🌏 | |
/v2/guild/:id | Guild\DetailsEndpoint GW2Api::guild()->detailsOf() |
🔓 | 🚫 |
/v2/guild/:id/log | Guild\Authenticated\LogEndpoint GW2Api::guild()->logOf() |
🔒 | |
/v2/guild/:id/members | Guild\Authenticated\MemberEndpoint GW2Api::guild()->membersOf() |
🔒 | |
/v2/guild/:id/ranks | Guild\Authenticated\RankEndpoint GW2Api::guild()->ranksOf() |
🔒 | |
/v2/guild/:id/stash | Guild\Authenticated\StashEndpoint GW2Api::guild()->stashOf() |
🔒 | |
/v2/guild/:id/teams | Guild\Authenticated\TeamEndpoint GW2Api::guild()->teamsOf() |
🔒 | |
/v2/guild/:id/treasury | Guild\Authenticated\TreasuryEndpoint GW2Api::guild()->treasuryOf() |
🔒 | |
/v2/guild/:id/upgrades | Guild\Authenticated\UpgradeEndpoint GW2Api::guild()->upgradesOf() |
🔒 | |
/v2/guild/permissions | Guild\PermissionEndpoint GW2Api::guild()->permissionsOf() |
📦🌏 | |
/v2/guild/upgrades | Guild\UpgradeEndpoint GW2Api::guild()->upgradesOf() |
📦🌏 | |
/v2/home/cats | Home\CatEndpoint GW2Api::home()->cats() |
📦 | |
/v2/home/nodes | Home\NodeEndpoint GW2Api::home()->nodes() |
📦 | |
/v2/items | Item\ItemEndpoint GW2Api::items() |
📦🌏 | |
/v2/itemstats | Itemstat\ItemstatEndpoint GW2Api::itemstats() |
📦🌏 | |
disabled | 🚫 | ||
/v2/legends | Legend\LegendEndpoint GW2Api::legends() |
📦🌏 | |
/v2/maps | Map\MapEndpoint GW2Api::maps() |
📦🌏 | |
/v2/masteries | Mastery\MasteryEndpoint GW2Api::masteries() |
📦🌏 | |
/v2/materials | Material\MaterialEndpoint GW2Api::materials() |
📦🌏 | |
/v2/minis | Mini\MiniEndpoint GW2Api::minis() |
📦🌏 | |
/v2/mounts/types | Mount\TypeEndpoint GW2Api::mounts()->types() |
📦🌏 | |
/v2/mounts/skins | Mount\SkinEndpoint GW2Api::mounts()->skins() |
📦🌏 | |
/v2/novelties | Novelty\NoveltyEndpoint GW2Api::novelties() |
📦🌏 | |
/v2/outfits | Outfit\OutfitEndpoint GW2Api::outfits() |
📦🌏 | |
/v2/pets | Pet\PetEndpoint GW2Api::pets() |
📦🌏 | |
/v2/profession | Profession\ProfessionEndpoint GW2Api::professions() |
📦🌏 | |
/v2/pvp/amulets | Pvp\AmuletEndpoint GW2Api::pvp()->amulets() |
📦🌏 | |
/v2/pvp/games | Pvp\GameEndpoint GW2Api::pvp()->games() |
🔒📦 | |
/v2/pvp/seasons | Pvp\SeasonEndpoint GW2Api::pvp()->seasons() |
📦🌏 | |
/v2/pvp/standings | Pvp\StandingEndpoint GW2Api::pvp()->standings() |
🔒 | |
/v2/pvp/stats | Pvp\StatsEndpoint GW2Api::pvp()->stats() |
🔒 | |
/v2/quaggans | Quaggan\QuagganEndpoint GW2Api::quaggans() |
📦 | |
/v2/recipes | Recipe\RecipeEndpoint GW2Api::recipes() |
📦 | |
/v2/recipes/search | Recipe\SearchEndpoint GW2Api::recipes()->search() |
||
/v2/skills | Skill\SkillEndpoint GW2Api::skills() |
📦🌏 | |
/v2/skins | Skin\SkinEndpoint GW2Api::skins() |
📦🌏 | |
/v2/specializations | Specialization\SpecializationEndpoint GW2Api::specializations() |
📦🌏 | |
/v2/stories | Story\StoryEndpoint GW2Api::stories() |
📦🌏 | |
/v2/stories/seasons | Story\SeasonEndpoint GW2Api::stories()->season |
📦🌏 | |
/v2/titles | Title\TitleEndpoint GW2Api::titles() |
📦🌏 | |
/v2/tokeninfo | Tokeninfo\TokeninfoEndpoint GW2Api::tokeninfo() |
🔒 | |
/v2/traits | Traits\TraitEndpoint GW2Api::traits() |
📦🌏 | |
/v2/worlds | World\WorldEndpoint GW2Api::worlds() |
📦🌏 | |
/v2/wvw/abilities | WvW\AbilityEndpoint GW2Api::wvw()->abilities() |
📦🌏 | |
/v2/wvw/matches | WvW\MatchEndpoint GW2Api::wvw()->matches() |
📦 | |
/v2/wvw/objectives | WvW\ObjectiveEndpoint GW2Api::wvw()->objectives() |
📦🌏 |
† Not FQN, all endpoints are in the namespace \GW2Treasures\GW2Api\V2\Endpoint
‡ Flags:
🔒AuthenticatedEndpoint
📦BulkEndpoint
🌏LocalizedEndpoint
📄PaginatedEndpoint
🚫Disabled in the API
Abstract Endpoints
AuthenticatedEndpoint
\GW2Treasures\GW2Api\V2\Authentication\IAuthenticatedEndpoint
(source)
All endpoints requiring authentication implement the interface IAuthenticatedEndpoint
.
Throws AuthenticationException
and InvalidPermissionsException.
BulkEndpoint
\GW2Treasures\GW2Api\V2\Bulk\IBulkEndpoint
(source)
All endpoints supporting bulk expansion implement the interface IBulkEndpoint
.
Extends PaginatedEndpoint.
Throws PageOutOfRangeException.
Methods
all():array
Get all entries.
If the endpoint doesn't support?ids=all
this falls back toPaginatedEndpoint::all()
.ids():int[]|string[]
Get all ids.get(int|string $id):mixed
Get a single entry by id.many(int[]|string[] $ids):array
Get multiple entries by id.IPaginatedEndpoint::page(int $page, [int $size]):array
Get a specific page of the endpoint.IPaginatedEndpoint::batch([int $parallelRequests], Closure $callback):void
Get all entries in multiple small batches. The callback gets called with new entries until all entries have been processed.
Signature of the callback:function(array $entries):void
.
Example
LocalizedEndpoint
\GW2Treasures\GW2Api\V2\Localization\ILocalizedEndpoint
(source)
All endpoints supporting localization implement the interface ILocalizedEndpoint
.
Defaults to en
.
Throws InvalidLanguageException.
Methods
lang(string $lang):$this
Change the language of the endpoint.
Example
PaginatedEndpoint
\GW2Treasures\GW2Api\V2\Pagination\IPaginatedEndpoint
(source)
All endpoints supporting pagination implement the interface IPaginatedEndpoint
.
Throws PageOutOfRangeException.
Methods
all():array
Get all entries.
Requests all pages of this endpoint in parallel and returns the merged result.page(int $page, [int $size]):array
Get a page of entries. The$size
defaults to the maximum page size (200 for most endpoints).batch([int $parallelRequests], Closure $callback):void
Get all entries in multiple small batches. The callback gets called with new entries until all entries have been processed.
Signature of the callback:function(array $entries):void
.
Example
RestrictedGuildEndpoint
\GW2Treasures\GW2Api\V2\Endpoint\Guild\IRestrictedGuildEndpoint
(source)
All guild endpoints requiring you to be a member implement the interface RestrictedGuildEndpoint
.
Throws MembershipRequiredException.
Exceptions
ApiException
\GW2Treasures\GW2Api\Exception\ApiException
(source)
Gets thrown by all endpoints when the API returns an error.
Extends \Exception
.
Methods
getResponse():ResponseInterface
The response that was returned by the API.
Example
AuthenticationException
\GW2Treasures\GW2Api\V2\Authentication\Exception\AuthenticationException
(source)
Gets thrown by AuthenticatedEndpoints when the endpoint needs authentication but no API key was specified or the API key was invalid. Extends ApiException.
Example
InvalidPermissionsException
\GW2Treasures\GW2Api\V2\Authentication\Exception\InvalidPermissionsException
(source)
Gets thrown by AuthenticatedEndpoints when the API key is missing permissions to access the endpoint. Extends AuthenticationException.
Methods
getMissingScope():string
The permission that was missing to access the endpoint.
Example
InvalidLanguageException
\GW2Treasures\GW2Api\V2\Localization\Exception\InvalidLanguageException
(source)
Gets thrown by LocalizedEndpoints when the API responds with a different language than requested. Extends ApiException.
Methods
getRequestLanguage():string
The requested language.getResponseLanguage():string
The language the API responded with.
Example
PageOutOfRangeException
\GW2Treasures\GW2Api\V2\Pagination\Exception\PageOutOfRangeException
(source)
Gets thrown by ApiException.
Example
GuildException
\GW2Treasures\GW2Api\V2\Endpoint\Guild\Exception\GuildException
(source)
Parent class of all guild exceptions. Extends ApiException.
GuildLeaderRequiredException
\GW2Treasures\GW2Api\V2\Endpoint\Guild\Exception\GuildLeaderRequiredException
(source)
Gets thrown by RestrictedGuildEndpoint when requesting informations of a guild you are not the leader of. Extends GuildException.
Example
MembershipRequiredException
\GW2Treasures\GW2Api\V2\Endpoint\Guild\Exception\GuildLeaderRequiredException
(source)
Gets thrown by RestrictedGuildEndpoint when requesting informations of a guild you are not a member of. Extends GuildException.
Example
Endpoints
/v2/account
\GW2Treasures\GW2Api\V2\Endpoint\Account\AccountEndpoint
(source)
Implements 🔒AuthenticatedEndpoint.
Methods
get():mixed
Get basic account info.bank():Account\BankEndpoint
Gets a new Account\BankEndpoint instance.materials():Account\MaterialEndpoint
Gets a new Account\MaterialEndpoint instance.
Example
/v2/account/achievements
\GW2Treasures\GW2Api\V2\Endpoint\Account\AchievementEndpoint
(source)
The AchievementEndpoint can be used to look up the achievements returned by this endpoint. Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Get account achievement progression.
Example
/v2/account/bank
\GW2Treasures\GW2Api\V2\Endpoint\Account\BankEndpoint
(source)
Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Get account bank.
Example
/v2/account/dyes
\GW2Treasures\GW2Api\V2\Endpoint\Account\DyeEndpoint
(source)
The ColorEndpoint can be used to look up the colors used by this endpoint. Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Get unlocked dyes.
Example
/v2/account/finishers
\GW2Treasures\GW2Api\V2\Endpoint\Account\FinisherEndpoint
(source)
The FinisherEndpoint can be used to look up the finishers used by this endpoint. Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Get unlocked finishers.
Example
/v2/account/inventory
\GW2Treasures\GW2Api\V2\Endpoint\Account\InventoryEndpoint
(source)
Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Returns a list of item stacks representing the account's shared inventory slots.
Example
/v2/account/masteries
\GW2Treasures\GW2Api\V2\Endpoint\Account\MasteryEndpoint
(source)
The MasteryEndpoint can be used to get the masteries used by this endpoint. Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Get unlocked masteries.
Example
/v2/account/materials
\GW2Treasures\GW2Api\V2\Endpoint\Account\MaterialEndpoint
(source)
The MaterialEndpoint can be used to get the categories used by this endpoint. Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Get account material storage.
Example
/v2/account/minis
\GW2Treasures\GW2Api\V2\Endpoint\Account\MiniEndpoint
(source)
The MiniEndpoint can be used to look up the minis returned by this endpoint. Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Get unlocked minis.
Example
/v2/account/novelties
\GW2Treasures\GW2Api\V2\Endpoint\Account\MiniEndpoint
(source)
The NoveltyEndpoint can be used to look up the minis returned by this endpoint. Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Get unlocked novelties.
Example
/v2/account/recipes
\GW2Treasures\GW2Api\V2\Endpoint\Account\RecipeEndpoint
(source)
The RecipeEndpoint can be used to look up the recipes used by this endpoint. Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Get unlocked recipes.
Example
/v2/account/skins
\GW2Treasures\GW2Api\V2\Endpoint\Account\SkinEndpoint
(source)
The SkinEndpoint can be used to look up the skins used by this endpoint. Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Get unlocked skins.
Example
/v2/account/titles
\GW2Treasures\GW2Api\V2\Endpoint\Account\TitleEndpoint
(source)
The TitleEndpoint can be used to look up the titles used by this endpoint. Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Get unlocked titles.
Example
/v2/account/wallet
\GW2Treasures\GW2Api\V2\Endpoint\Account\WalletEndpoint
(source)
The CurrencyEndpoint can be used to look up the currencies used by this endpoint. Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Get the account wallet.
Example
/v2/achievements
\GW2Treasures\GW2Api\V2\Endpoint\Achievement\AchievementEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
categories():Achievement\CategoryEndpoint
Gets a new Achievement\CategoryEndpoint instance.daily():Achievement\DailyEndpoint
Gets a new Achievement\DailyEndpoint instance.groups():Achievement\GroupEndpoint
Gets a new Achievement\GroupEndpoint instance.
Example
/v2/achievements/categories
\GW2Treasures\GW2Api\V2\Endpoint\Achievement\CategoryEndpoint
(source)
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/achievements/daily
\GW2Treasures\GW2Api\V2\Endpoint\Achievement\DailyEndpoint
(source)
Methods
get():mixed
Get the current daily achievements.tomorrow():DailyTomorrowEndpoint
Get tomorrows daily achievements.
Example
/v2/achievements/daily/tomorrow
\GW2Treasures\GW2Api\V2\Endpoint\Achievement\DailyTomorrowEndpoint
(source)
Methods
get():mixed
Get the current daily achievements.
Example
/v2/achievements/groups
\GW2Treasures\GW2Api\V2\Endpoint\Achievement\GroupEndpoint
(source)
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/backstory/answers
\GW2Treasures\GW2Api\V2\Endpoint\Backstory\AnswerEndpoint
(source)
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/backstory/questions
\GW2Treasures\GW2Api\V2\Endpoint\Backstory\QuestionEndpoint
(source)
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/build
\GW2Treasures\GW2Api\V2\Endpoint\Build\BuildEndpoint
(source)
Methods
get():int
Gets the current build id.
Example
/v2/characters
\GW2Treasures\GW2Api\V2\Endpoint\Character\CharacterEndpoint
(source)
Implements 📦BulkEndpoint.
Methods
equipmentOf():Character\EquipmentEndpoint
Gets a new Character\EquipmentEndpoint instance.inventoryOf():Character\InventoryEndpoint
Gets a new Character\InventoryEndpoint instance.recipesOf():Character\RecipeEndpoint
Gets a new Character\RecipeEndpoint instance.specializationsOf():Character\SpecializationEndpoint
Gets a new Character\SpecializationEndpoint instance.- Inherited from 📦BulkEndpoint.
Example
/v2/characters/:id/backstory
\GW2Treasures\GW2Api\V2\Endpoint\Character\BackstoryEndpoint
(source)
Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Gets the characters backstory.
Example
/v2/characters/:id/core
\GW2Treasures\GW2Api\V2\Endpoint\Character\CoreEndpoint
(source)
Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Gets the core information of a character.
Example
/v2/characters/:id/crafting
\GW2Treasures\GW2Api\V2\Endpoint\Character\CraftingEndpoint
(source)
Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Get the crafting information of a character.
Example
/v2/characters/:id/equipment
\GW2Treasures\GW2Api\V2\Endpoint\Character\EquipmentEndpoint
(source)
Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Gets the characters equipment.
Example
/v2/characters/:id/heropoints
\GW2Treasures\GW2Api\V2\Endpoint\Character\HeropointEndpoint
(source)
Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Gets the characters heropoints.
Example
/v2/characters/:id/inventory
\GW2Treasures\GW2Api\V2\Endpoint\Character\InventoryEndpoint
(source)
Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Gets the characters inventory.
Example
/v2/characters/:id/recipes
\GW2Treasures\GW2Api\V2\Endpoint\Character\RecipeEndpoint
(source)
Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Get unlocked recipes of a character.
Example
/v2/characters/:id/skills
\GW2Treasures\GW2Api\V2\Endpoint\Character\SkillEndpoint
(source)
Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Gets the characters skills.
Example
/v2/characters/:id/specializations
\GW2Treasures\GW2Api\V2\Endpoint\Character\SpecializationEndpoint
(source)
Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Gets the characters specializations.
Example
/v2/characters/:id/training
\GW2Treasures\GW2Api\V2\Endpoint\Character\TrainingEndpoint
(source)
Implements 🔒AuthenticatedEndpoint.
Methods
get():array
Gets the characters trainings.
Example
/v2/colors
\GW2Treasures\GW2Api\V2\Endpoint\Color\ColorEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/commerce/exchange
\GW2Treasures\GW2Api\V2\Endpoint\Commerce\ExchangeEndpoint
(source)
Methods
gems(int $quantity):mixed
Current gem to coins exchange rate.coins(int $quantity):mixed
Current coins to gems exchange rate.
Example
/v2/commerce/listings
\GW2Treasures\GW2Api\V2\Endpoint\Commerce\ListingEndpoint
(source)
Implements 📦BulkEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
Example
/v2/commerce/prices
\GW2Treasures\GW2Api\V2\Endpoint\Commerce\PriceEndpoint
(source)
Implements 📦BulkEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
Example
/v2/commerce/transactions
\GW2Treasures\GW2Api\V2\Endpoint\Commerce\Transaction\TransactionEndpoint
(source)
Implements 🔒AuthenticatedEndpoint.
Methods
current():Commerce\Transaction\TypeEndpoint
Gets a new Commerce\Transaction\TypeEndpoint instance representing current transactions.history():Commerce\Transaction\TypeEndpoint
Gets a new Commerce\Transaction\TypeEndpoint instance representing historic transactions.
/v2/commerce/transactions/:type
\GW2Treasures\GW2Api\V2\Endpoint\Commerce\Transaction\TypeEndpoint
(source)
Implements 🔒AuthenticatedEndpoint.
Methods
buys():Commerce\Transaction\ListEndpoint
Gets a new Commerce\Transaction\ListEndpoint instance representing pending/completed buy transactions.sells():Commerce\Transaction\ListEndpoint
Gets a new Commerce\Transaction\ListEndpoint instance representing pending/completed buy transactions.
/v2/commerce/transactions/:type/:list
\GW2Treasures\GW2Api\V2\Endpoint\Commerce\Transaction\ListEndpoint
(source)
Implements 📄PaginatedEndpoint.
Methods
- Inherited methods from 📄PaginatedEndpoint
Example
/v2/continents
\GW2Treasures\GW2Api\V2\Endpoint\Continent\ContinentEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
floors(int $continent_id):Continent\FloorEndpoint
Gets a new Continent\FloorEndpoint instance.
Example
/v2/currencies
\GW2Treasures\GW2Api\V2\Endpoint\Currency\CurrencyEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/continents/:id/floors
\GW2Treasures\GW2Api\V2\Endpoint\Continent\FloorEndpoint
(source)
Implements 📦BulkEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
Example
/v2/emblem
\GW2Treasures\GW2Api\V2\Endpoint\Emblem\EmblemEndpoint
(source)
Methods
backgrounds():Emblem\LayerEndpoint
Gets a new Emblem\LayerEndpoint instance of all background layers.foregrounds():Emblem\LayerEndpoint
Gets a new Emblem\LayerEndpoint instance of all foreground layers.
/v2/emblem/:type
\GW2Treasures\GW2Api\V2\Endpoint\Emblem\LayerEndpoint
(source)
Implements 📦BulkEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
Example
/v2/files
\GW2Treasures\GW2Api\V2\Endpoint\File\FileEndpoint
(source)
Implements 📦BulkEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
Example
/v2/finishers
\GW2Treasures\GW2Api\V2\Endpoint\Finisher\FinisherEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/guild/:id
\GW2Treasures\GW2Api\V2\Endpoint\Guild\DetailsEndpoint
(source)
Implements 🔒AuthenticatedEndpoint. The API key is optional.
Methods
- Inherited methods from 🔒AuthenticatedEndpoint
get():array
Get the guild details of a guild.
Example
/v2/guild/:id/log
\GW2Treasures\GW2Api\V2\Endpoint\Guild\Authenticated\LogEndpoint
(source)
Implements RestrictedGuildEndpoint.
Methods
- Inherited methods from 🔒AuthenticatedEndpoint
Example
/v2/guild/:id/members
\GW2Treasures\GW2Api\V2\Endpoint\Guild\Authenticated\MemberEndpoint
(source)
Implements RestrictedGuildEndpoint.
Methods
- Inherited methods from 🔒AuthenticatedEndpoint
Example
/v2/guild/:id/ranks
\GW2Treasures\GW2Api\V2\Endpoint\Guild\Authenticated\RankEndpoint
(source)
Implements RestrictedGuildEndpoint.
Methods
- Inherited methods from 🔒AuthenticatedEndpoint
Example
/v2/guild/:id/stash
\GW2Treasures\GW2Api\V2\Endpoint\Guild\Authenticated\StashEndpoint
(source)
Implements RestrictedGuildEndpoint.
Methods
- Inherited methods from 🔒AuthenticatedEndpoint
Example
/v2/guild/:id/teams
\GW2Treasures\GW2Api\V2\Endpoint\Guild\Authenticated\TeamEndpoint
(source)
Implements RestrictedGuildEndpoint.
Methods
- Inherited methods from 🔒AuthenticatedEndpoint
Example
/v2/guild/:id/treasury
\GW2Treasures\GW2Api\V2\Endpoint\Guild\Authenticated\TreasuryEndpoint
(source)
Implements RestrictedGuildEndpoint.
Methods
- Inherited methods from 🔒AuthenticatedEndpoint
Example
/v2/guild/:id/upgrades
\GW2Treasures\GW2Api\V2\Endpoint\Guild\Authenticated\UpgradeEndpoint
(source)
Implements RestrictedGuildEndpoint.
Methods
- Inherited methods from 🔒AuthenticatedEndpoint
Example
/v2/guild/permissions
\GW2Treasures\GW2Api\V2\Endpoint\Guild\PermissionEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/guild/upgrades
\GW2Treasures\GW2Api\V2\Endpoint\Guild\UpgradeEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/home/cats
\GW2Treasures\GW2Api\V2\Endpoint\Home\CatEndpoint
(source)
Implements 📦BulkEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
Example
/v2/home/nodes
\GW2Treasures\GW2Api\V2\Endpoint\Home\NodeEndpoint
(source)
Implements 📦BulkEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
Example
/v2/items
\GW2Treasures\GW2Api\V2\Endpoint\Item\ItemEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/itemstats
\GW2Treasures\GW2Api\V2\Endpoint\Itemstat\ItemstatEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/legends
\GW2Treasures\GW2Api\V2\Endpoint\Legend\LegendEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/maps
\GW2Treasures\GW2Api\V2\Endpoint\Map\MapEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/masteries
\GW2Treasures\GW2Api\V2\Endpoint\Mastery\MasteryEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/materials
\GW2Treasures\GW2Api\V2\Endpoint\Material\MaterialEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/minis
\GW2Treasures\GW2Api\V2\Endpoint\Mini\MiniEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/mounts/types
\GW2Treasures\GW2Api\V2\Endpoint\Mount\TypeEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/mounts/skins
\GW2Treasures\GW2Api\V2\Endpoint\Mount\SkinEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/novelties
\GW2Treasures\GW2Api\V2\Endpoint\Novelty\NoveltyEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/outfits
\GW2Treasures\GW2Api\V2\Endpoint\Outfit\OutfitEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/pets
\GW2Treasures\GW2Api\V2\Endpoint\Pet\PetEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/professions
\GW2Treasures\GW2Api\V2\Endpoint\Profession\ProfessionEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/pvp/amulets
\GW2Treasures\GW2Api\V2\Endpoint\Pvp\AmuletEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/pvp/games
\GW2Treasures\GW2Api\V2\Endpoint\Pvp\GameEndpoint
(source)
Implements 📦BulkEndpoint.
Methods
- Inherited from 📦BulkEndpoint.
Example
/v2/pvp/seasons
\GW2Treasures\GW2Api\V2\Endpoint\Pvp\SeasonEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/pvp/standings
\GW2Treasures\GW2Api\V2\Endpoint\Pvp\StandingEndpoint
(source)
Implements 🔒AuthenticatedEndpoint.
Methods
get():mixed
Get pvp standings.
Example
/v2/pvp/stats
\GW2Treasures\GW2Api\V2\Endpoint\Pvp\StatsEndpoint
(source)
Implements 🔒AuthenticatedEndpoint.
Methods
get():mixed
Get pvp stats.
Example
/v2/quaggans
\GW2Treasures\GW2Api\V2\Endpoint\Quaggan\QuagganEndpoint
(source)
Implements 📦BulkEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
Example
/v2/recipes
\GW2Treasures\GW2Api\V2\Endpoint\Recipe\RecipeEndpoint
(source)
Implements 📦BulkEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
search():Recipe\SearchEndpoint
Gets a new Recipe\SearchEndpoint instance.
Example
/v2/recipes/search
\GW2Treasures\GW2Api\V2\Endpoint\Recipe\SearchEndpoint
(source)
Methods
input(int $id):mixed
Searches for recipes with$id
as ingredient.output(int $id):mixed
Searches for recipes with$id
as output.
Example
/v2/skills
\GW2Treasures\GW2Api\V2\Endpoint\Skill\SkillEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/skins
\GW2Treasures\GW2Api\V2\Endpoint\Skin\SkinEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/specializations
\GW2Treasures\GW2Api\V2\Endpoint\Specialization\SpecializationEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/titles
\GW2Treasures\GW2Api\V2\Endpoint\Title\TitleEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/stories
\GW2Treasures\GW2Api\V2\Endpoint\Story\StoryEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
seasons():Story\SeasonEndpoint
Gets a new Story\SeasonEndpoint instance.
Example
/v2/stories/seasons
\GW2Treasures\GW2Api\V2\Endpoint\Story\SeasonEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/titles
\GW2Treasures\GW2Api\V2\Endpoint\Title\TitleEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/tokeninfo
\GW2Treasures\GW2Api\V2\Endpoint\Tokeninfo\TokeninfoEndpoint
(source)
Implements 🔒AuthenticatedEndpoint.
Methods
get():mixed
Get info about the used api key.
Example
/v2/traits
\GW2Treasures\GW2Api\V2\Endpoint\Traits\TraitEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/worlds
\GW2Treasures\GW2Api\V2\Endpoint\World\WorldEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/wvw/abilities
\GW2Treasures\GW2Api\V2\Endpoint\WvW\AbilityEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
/v2/wvw/matches
\GW2Treasures\GW2Api\V2\Endpoint\WvW\MatchEndpoint
(source)
Implements 📦BulkEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
world(int $id):mixed
Get the current match of a world.
Example
/v2/wvw/objectives
\GW2Treasures\GW2Api\V2\Endpoint\WvW\ObjectiveEndpoint
(source)
Implements 🌏LocalizedEndpoint.
Methods
- Inherited methods from 📦BulkEndpoint
- Inherited methods from 🌏LocalizedEndpoint
Example
License
MIT © 2015 gw2treasures.com