clsung/plurk-oauth — pull request #3 by legnaleurc (2012-01-13 16:09:37+00:00)
Title: Split authentication stages

This branch splits PlurkOAuth.authorize to few stages, to satisfy any kinds of clients.

For instance, web app needs to store request token somewhere and take it out later:

```python
# first stage
api = PlurkAPI( **kwargs )
request_token = api.get_request_token()
# now store this request token
url = api.get_verifier_url()
# redirect to url

# second stage
request_token = # read request token from somewhere
verifier = # from GET parameter
api = PlurkAPI( **kwargs )
api.set_request_token( **request_token )
access_token = api.get_access_token( verifier )
# now we got the access token
```

Of course this is useful for those native GUI clients, too.
They could decide how to deal with verifier page, and doesn't need to know
how PlurkOAuth works.

This branch included test cases for new APIs.