Create reservation

they're free to place it in some sort of config file and load it themselves
- there's nothing as nifty as what we did with the ruby gem

On Fri, Dec 12, 2014 at 11:15 AM, Brian McManus <notifications@github.com>
wrote:
>
> In src/main/java/com/checkmate/sdk/CheckmateClient.java
> <https://github.com/CheckMateIO/checkmate_java/pull/1#discussion-diff-21766191>
> :
>
> > +  protected static final String ACCEPT_HEADER_KEY = "Accept";
> > +  protected static final String ACCEPT_HEADER_VALUE = "application/json";
> > +  protected static final String API_TOKEN_HEADER_KEY = "X-CheckMate-API-Token";
> > +
> > +  private String apiEndpoint;
> > +  private String apiKey;
> > +  private HttpClient httpClient;
> > +  private Gson gson;
> > +
> > +  // This constructor connects to the default endpoint.
> > +  public CheckmateClient(final String apiKey) {
> > +    this(apiKey, DEFAULT_ENDPOINT);
> > +  }
> > +
> > +  // Use this constructor if you'd like to provide a custom endpoint.
> > +  public CheckmateClient(final String apiKey, final String apiEndpoint) {
>
> Are they just expected to know the endpoint URL and pass it in? Is there a
> way to make this configurable outside of their source code?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/CheckMateIO/checkmate_java/pull/1/files#r21766191>.
>