The ForUser(string,string) method could do with being made less confusing.
It currently just accepts 2 string parameters, and the name doesn't really mean anything.
I propose something like:
var requestToken = Api<RequestToken>.Create
.Please();
.... authorise request token ....
var accessToken = Api<AccessToken>.Create
.WithToken(RequestToken requestToken)
.Please()
var usersLocker = Api<Locker>.Create
.WithToken(AccessToken accessToken)
.Please()
Where WithToken only accepts either RequestToken or AccessToken depending on the Api, which can be achieved using Interfaces as we do with the rest of the wrapper.
The ForUser(string,string) method could do with being made less confusing. It currently just accepts 2 string parameters, and the name doesn't really mean anything.
I propose something like:
Where, which can be achieved using Interfaces as we do with the rest of the wrapper.
WithToken
only accepts eitherRequestToken
orAccessToken
depending on the ApiRelates to issue #234