public function getItemHistoryForRegion($howManyItemsBack, $successCallbackFunction, $rejectedCallbackFunction) {

        $pool = new Pool($this->client, $this->createdRequests, $this->getOptions($howManyItemsBack, $successCallbackFunction, $rejectedCallbackFunction));

        $promise = $pool->promise();
        $promise->wait();
    }
public function getItemHistoryForRegion($howManyItemsBack, $successCallbackFunction, $rejectedCallbackFunction) {

        $pool = new Pool($this->client, $this->createdRequests, $this->getOptions($howManyItemsBack, $successCallbackFunction, $rejectedCallbackFunction));

        $promise = $pool->promise();
        $promise->wait();
    }
public function getItemHistoryForRegion ( $ howManyItemsBack , $ successCallbackFunction , $ rejectedCallbackFunction ) { $ pool = new Pool ( $ this -> client , $ this -> createdRequests , $ this -> getOptions ( $ howManyItemsBack , $ successCallbackFunction , $ rejectedCallbackFunction ) ) ; $ promise = $ pool -> promise ( ) ; $ promise -> wait ( ) ; }
Get the item history for the a region.

You can specificy the response json items to come back. This means
that you can say something like -20, this will give you the last 20
items of the array of response->items.

The second argument is a callback that takes the following paramters:

- array regionItemPairs, example: [0, 1] where 0 is the region id and 1 is the item id.
- json object responseJson which is the response json from the promise.

This call back function can then be used to do what ever you wish with the data backing back.
the region and item pairs map to the response json in question.

@param $howManyItemsBack How many items should we get back?
@param $successCallbackFunction the function which takes an array of region id and item id and a responseJson object.
@param $rejectedCallbackFunction the function to handle rejected response. $reason and $index are injected into the function.
Get the item history for the a region .