mirror of
https://github.com/Expand-sys/ccash-client-js
synced 2026-03-22 12:27:09 +11:00
fix: remove log transactionCount
This commit is contained in:
parent
dbe1008850
commit
a26b61aeec
2 changed files with 2 additions and 7 deletions
|
|
@ -26,15 +26,10 @@ export class CCashClient implements ICCashClient {
|
||||||
.then((response) => this.handleError(response) || response.data.value);
|
.then((response) => this.handleError(response) || response.data.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
log(
|
log(user: string, pass: string): Promise<number[]> {
|
||||||
user: string,
|
|
||||||
pass: string,
|
|
||||||
transactionCount: number = 10
|
|
||||||
): Promise<number[]> {
|
|
||||||
return this.http
|
return this.http
|
||||||
.get(`/${user}/bal`, {
|
.get(`/${user}/bal`, {
|
||||||
headers: { Password: pass },
|
headers: { Password: pass },
|
||||||
params: { n: transactionCount },
|
|
||||||
})
|
})
|
||||||
.then((response) => this.handleError(response) || response.data.value);
|
.then((response) => this.handleError(response) || response.data.value);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ export { User };
|
||||||
export interface ICCashClient {
|
export interface ICCashClient {
|
||||||
// Usage
|
// Usage
|
||||||
balance(user: string): Promise<number>;
|
balance(user: string): Promise<number>;
|
||||||
log(user: string, pass: string, transactionCount?: number): Promise<number[]>;
|
log(user: string, pass: string): Promise<number[]>;
|
||||||
sendFunds(
|
sendFunds(
|
||||||
user: string,
|
user: string,
|
||||||
pass: string,
|
pass: string,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue