addshore / addframe

OLD addwiki framework (See the newer https://github.com/addwiki libraries)
7 stars 2 forks source link

Better token management system #129

Closed legoktm closed 11 years ago

legoktm commented 11 years ago

$site->getToken('edit') or something.

addshore commented 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..

addshore commented 11 years ago

Also now with the caching implemented we can easily cache token requests!

addshore commented 11 years ago

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