@iletimerkezi/iletimerkezi-node
Version:
İleti Merkezi Node.js SDK
25 lines • 851 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AccountService = void 0;
const AccountResponse_1 = require("../responses/AccountResponse");
class AccountService {
constructor(httpClient, apiKey, apiHash) {
this.httpClient = httpClient;
this.apiKey = apiKey;
this.apiHash = apiHash;
}
async balance() {
const payload = {
request: {
authentication: {
key: this.apiKey,
hash: this.apiHash
}
}
};
const response = await this.httpClient.post('get-balance/json', payload);
return new AccountResponse_1.AccountResponse(response.getBody(), response.getStatusCode());
}
}
exports.AccountService = AccountService;
//# sourceMappingURL=AccountService.js.map