File tree Expand file tree Collapse file tree 2 files changed +3
-18
lines changed
src/main/java/com/blockscore Expand file tree Collapse file tree 2 files changed +3
-18
lines changed Original file line number Diff line number Diff line change 88public final class Constants {
99 public static final String AUTHORIZATION_HEADER = "Authorization" ;
1010 public static final String ACCEPT_HEADER = "Accept" ;
11-
12- private static final boolean DEBUG_MODE = false ;
13- private static final String BLOCKSCORE_DOMAIN = "https://api.blockscore.com" ;
14- private static final String BLOCKSCORE_DEV_DOMAIN = "http://127.0.0.1:5400" ;
11+ public static final String BLOCKSCORE_DOMAIN = "https://api.blockscore.com" ;
12+
1513 private static final String VERSION_CODE = "4" ;
1614 private static final String ACCEPT_CONTENTS = "application/vnd.blockscore+json;version=%s" ;
1715
@@ -27,17 +25,4 @@ private Constants() {
2725 public static String getAcceptHeaders () {
2826 return String .format (ACCEPT_CONTENTS , VERSION_CODE );
2927 }
30-
31- /**
32- * Gets the domain to use for testing this API client. (DO NOT RELEASE IN DEBUG MODE!)
33- * @return Debug domain if we are in debug mode.
34- */
35- @ NotNull
36- public static String getDomain () {
37- if (DEBUG_MODE ) {
38- return BLOCKSCORE_DEV_DOMAIN ;
39- } else {
40- return BLOCKSCORE_DOMAIN ;
41- }
42- }
4328}
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public BlockscoreApiClient(@NotNull final String apiKey) {
4949 this .apiKey = apiKey + ":" ;
5050
5151 RestAdapter .Builder restBuilder = new RestAdapter .Builder ().setClient (new BlockscoreHttpClient ())
52- .setEndpoint (Constants .getDomain () );
52+ .setEndpoint (Constants .BLOCKSCORE_DOMAIN );
5353 restBuilder .setConverter (getDefaultConverter ());
5454 restBuilder .setRequestInterceptor (getDefaultRequestInterceptor ());
5555 restBuilder .setErrorHandler (new BlockscoreErrorHandler ());
You can’t perform that action at this time.
0 commit comments