You've already forked go-monobank
Commit
This commit is contained in:
@ -28,13 +28,13 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "gitea.stuzer.link/stuzer05/go-monobank"
|
||||
monobankclient "gitea.stuzer.link/stuzer05/go-monobank"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
configuration := monobankclient.NewConfiguration()
|
||||
apiClient := monobankclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.DefaultApi.BankCurrencyGet(context.Background()).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.BankCurrencyGet``: %v\n", err)
|
||||
@ -89,14 +89,14 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "gitea.stuzer.link/stuzer05/go-monobank"
|
||||
monobankclient "gitea.stuzer.link/stuzer05/go-monobank"
|
||||
)
|
||||
|
||||
func main() {
|
||||
xToken := "u3AulkpZFI1lIuGsik6vuPsVWqN7GoWs6o_MO2sdf301" // string | Token для особистого доступу до API
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
configuration := monobankclient.NewConfiguration()
|
||||
apiClient := monobankclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.DefaultApi.PersonalClientInfoGet(context.Background()).XToken(xToken).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.PersonalClientInfoGet``: %v\n", err)
|
||||
@ -155,7 +155,7 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "gitea.stuzer.link/stuzer05/go-monobank"
|
||||
monobankclient "gitea.stuzer.link/stuzer05/go-monobank"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@ -164,8 +164,8 @@ func main() {
|
||||
from := "1546304461" // string | Початок часу виписки.
|
||||
to := "1546306461" // string | Останній час виписки (якщо відсутній, буде використовуватись поточний час). (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
configuration := monobankclient.NewConfiguration()
|
||||
apiClient := monobankclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.DefaultApi.PersonalStatementAccountFromToGet(context.Background(), account, from, to).XToken(xToken).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.PersonalStatementAccountFromToGet``: %v\n", err)
|
||||
@ -233,15 +233,15 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "gitea.stuzer.link/stuzer05/go-monobank"
|
||||
monobankclient "gitea.stuzer.link/stuzer05/go-monobank"
|
||||
)
|
||||
|
||||
func main() {
|
||||
xToken := "xToken_example" // string | Token для особистого доступу до API
|
||||
setWebHook := *openapiclient.NewSetWebHook() // SetWebHook |
|
||||
setWebHook := *monobankclient.NewSetWebHook() // SetWebHook |
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
configuration := monobankclient.NewConfiguration()
|
||||
apiClient := monobankclient.NewAPIClient(configuration)
|
||||
r, err := apiClient.DefaultApi.PersonalWebhookPost(context.Background()).XToken(xToken).SetWebHook(setWebHook).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.PersonalWebhookPost``: %v\n", err)
|
||||
|
Reference in New Issue
Block a user