We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1a6d19 commit 704a8f0Copy full SHA for 704a8f0
java/com/samourai/wallet/api/backend/BackendApi.java
@@ -27,10 +27,10 @@ public class BackendApi implements OAuthApi {
27
private String urlBackend;
28
private OAuthManager oAuthManager;
29
30
- public BackendApi(IBackendClient httpClient, String urlBackend, OAuthManager oAuthManager) {
+ public BackendApi(IBackendClient httpClient, String urlBackend, String apiKey) {
31
this.httpClient = httpClient;
32
this.urlBackend = urlBackend;
33
- this.oAuthManager = oAuthManager; // may be null
+ this.oAuthManager = (apiKey != null ? new OAuthManager(apiKey) : null);
34
if (log.isDebugEnabled()) {
35
String oAuthStr = oAuthManager != null ? "yes" : "no";
36
log.debug("urlBackend=" + urlBackend + ", oAuth=" + oAuthStr);
0 commit comments