Commit85da871dRecorded25 Mar 2026Repositorysigil-wise
Fix README constructor name, balance currency source, and unused dep
Message
- README used non-existent make-wise-client; actual constructor is wise-client with keyword args - parse-balance now reads currency from top-level field with fallback to amount.currency - Remove unused sigil-log dependency from package.sgl and README
Changed
README.md | 8 ++++----
package.sgl | 3 +--
src/sigil/wise.sgl | 3 ++-
3 files changed, 7 insertions(+), 7 deletions(-)Diff
README.mdmodified
@@ -17,7 +17,7 @@ A Sigil library for the [Wise](https://wise.com) (formerly TransferWise) API. Pu
17
(import (sigil wise)) 18
19
;; Create a client with your personal API token−20
(define client (make-wise-client "your-api-token"))+20
(define client (wise-client token: "your-api-token")) 21
22
;; List profiles 23
(define profiles (wise-profiles client))@@ -40,11 +40,12 @@ Authentication uses a Wise personal API token:
40
2. Enable 2FA if not already active 41
3. Generate a new token 42
−43
Set `WISE_API_TOKEN` in your environment or pass it directly to `make-wise-client`.+43
Set `WISE_API_TOKEN` in your environment or pass it directly to `wise-client`. 44
45
For sandbox development, pass the sandbox URL: 46
```scheme−47
(define client (make-wise-client token base-url: "https://api.wise-sandbox.com"))+47
(define client (wise-client token: "your-api-token"+48
base-url: "https://api.wise-sandbox.com")) 49
``` 50
51
## Dependencies@@ -53,7 +54,6 @@ For sandbox development, pass the sandbox URL:
54
- sigil-tls 55
- sigil-http 56
- sigil-json−56
- sigil-log 57
58
## Building 59
package.sglmodified
@@ -29,8 +29,7 @@
29
(from-git url: sigil-repo package: "sigil-stdlib") 30
(from-git url: sigil-repo package: "sigil-tls") 31
(from-git url: sigil-repo package: "sigil-http")−32
(from-git url: sigil-repo package: "sigil-json")−33
(from-git url: sigil-repo package: "sigil-log"))+32
(from-git url: sigil-repo package: "sigil-json")) 33
34
tasks: (list 35
(tasksrc/sigil/wise.sglmodified
@@ -193,7 +193,8 @@
193
(reserved-obj (dict-ref data reservedAmount: #{}))) 194
(wise-balance 195
id: (dict-ref data id:)−196
currency: (dict-ref amount-obj currency: "")+196
currency: (dict-ref data currency:+197
(dict-ref amount-obj currency: "")) 198
type: (dict-ref data type: "STANDARD") 199
amount: (dict-ref amount-obj value: 0) 200
reserved-amount: (dict-ref reserved-obj value: 0))))