Closed legoktm closed 11 years ago
Well we now have new TokensRequest() which if passed to the Api will return the array of tokens :)
Next step is to implement this in the site class and potentially also have a class for ApiResults (maybe other thinking a bit)
If implemented well we would be able to do things like $result->getError(), $result->hasError(), $result->getEntity(1) and other such stuff..
Also now with the caching implemented we can easily cache token requests!
I am going to make this as resolved as we have:
site ->getToken( $type = 'edit' )
and
site->getTokenList()
which were added in https://github.com/addwiki/addframe/commit/69f06cb139f4002436c7d02eb52b618d5cc51d7c
$site->getToken('edit')
or something.