Skip to content
Joe Foster edited this page Jan 27, 2019 · 11 revisions

Once you have followed the setup using the api is simple

To make basic calls for unauthenticated items can be done as so

$r = $client->fetch($type,$parameters);

the values for $type are listed on there own source page $type would be the right side column on the pages and the endpoint with the fields they require is on the left.

EX:

i want to fetch my wow character from the armory i would use : $r = $client→fetch('character',$parameters); and fill in the parameters as needed

$parameters is an array used to set info for the calls in an array such as

array('name'=>'ulminia','server'=>'zangarmarsh','fields'=>'items,stats')

vars for this array are

  • name - mostly used for character or guild name

  • server/realm - the name or slug of the server

  • fields - used for characters to list what character items to call

  • size - primarily used for pvp ladders

  • id - item, spell or ability id

Refer to the usage pages for each source type for the available calls

Clone this wiki locally