Skip to content

Commit

Permalink
add new constructor when no apiKey is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianTerhorst committed May 10, 2016
1 parent 061add7 commit 68c0167
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ public class ApiClient<Api> extends ApiObserver implements IApi<Api> {
return chain.proceed(builder.build());
};

public ApiClient(Class<Api> clazz, String apiBaseUrl) {
this.mClazz = clazz;
this.mApiBaseUrl = apiBaseUrl;
}

public ApiClient(String apiKey, Class<Api> clazz, String apiBaseUrl) {
this.mApiKey = apiKey;
this.mClazz = clazz;
Expand Down

0 comments on commit 68c0167

Please sign in to comment.