Skip to content

Commit 4589a4c

Browse files
author
jon4h
committed
rename function name, update api endpoints
1 parent 4744550 commit 4589a4c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ func main() {
3131
ctx := context.Background()
3232

3333
// Create a basicAuth client
34-
client := btcpay.CreateBasicClient("https://mybtcpayserver.com", "myUsername", "myPassword")
34+
client := btcpay.NewBasicClient("https://mybtcpayserver.com", "myUsername", "myPassword")
3535

3636
// Print informations about the server, etc
3737
fmt.Println(client.GetServerInfo(ctx))
3838

3939
// Does the same but with an APIKey instead of basicAuth
4040
// Create a client with an APIKey
41-
client2 := btcpay.CreateBasicClient("https://mybtcpayserver.com", btcpay.APIKey("myAPIKey")
41+
client2 := btcpay.NewClient("https://mybtcpayserver.com", btcpay.APIKey("myAPIKey")
4242

4343
// Print informations about the server, etc again but use the APIKey based client
4444
fmt.Println(client2.GetServerInfo(ctx))
@@ -102,7 +102,7 @@ Endpoint |
102102
|`/api/v1/stores/{storeId}/payment-requests ` | ✅ Fully implemented
103103
|`/api/v1/stores/{storeId}/pull-payments` | ✅ Fully implemented
104104
|`/api/v1/stores/{storeId}/payment-methods/OnChain/{cryptoCode}/wallet` | ⏳ Work in progress
105-
|`/misc/lang` | ❌ Not working, [issue](https://github.com/btcpayserver/btcpayserver/issues/2437)
105+
|`/misc/lang` | ✅ Fully implemented
106106
|`/i` | ✅ Fully implemented
107107
|`/api/v1/pull-payments` | ✅ Fully implemented
108108

0 commit comments

Comments
 (0)