Skip to content

Improve builder #1033

Description

@davidmoten

Looks like a great simple to use library.

Can I suggest a further improvement:

Instead of

OAuthService service = new ServiceBuilder(YOUR_API_KEY)
                                  .apiSecret(YOUR_API_SECRET)
                                  .build(LinkedInApi20.instance());

Do something more readable and more discoverable (I want an OAuthService, use a static factory method on OAuthService):

OAuthService service = OAuthService
        .apiKey(YOUR_API_KEY)
        .apiSecret(YOUR_API_SECRET)
        .build(LinkedInApi20.instance());

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions