boncey/scribe-java — comment on commit bfbba77e4cdbfa4eeaf499b12790420e7392932d
File:  line 0
By sigbjod:

Looks like we're in the same situation, as I've been trying to figure out if there's a better way of doing this.

For now, I've ended up doing pretty much the same as you've been doing in your commit above. That is, I'm letting FlickrApi implement the Api class as well which overrides the createService function that calls a class that extends the OAuth10aServiceImpl. The latter class in turn overrides the getAuthorizationUrl which calls the function defined in FlickrApi allowing for setting the token and the permissions parameters. Basically, it does the same thing as concatenating the perms attribute to the result of the URL returned by Scribe, but with more LOCs.

In order to have a better way of solving this, I've filed a request (https://github.com/fernandezpablo85/scribe-java/issues/219) in order to have the possibility to pass optional parameters through the service builder, and if I'm lucky, the feature might be present in a future release of Scribe.