From dbb3d473529b1d13327980e2dee4e990ea4eee9e Mon Sep 17 00:00:00 2001 From: Guilherme Thomazi Bonicontro Date: Thu, 19 Jul 2018 18:23:55 +0200 Subject: [PATCH] updating getstatement url --- api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.go b/api.go index c3f4827..253baf6 100644 --- a/api.go +++ b/api.go @@ -347,7 +347,7 @@ func (auth *Client) GetStatements(retType string) (string, *Statements) { } func (auth *Client) GetStatementPDF(ID string) { - body := auth.n26Request(http.MethodGet, fmt.Sprintf("%s%s", "/api/statements/", ID), nil) + body := auth.n26Request(http.MethodGet, fmt.Sprintf("/api/statements/%s", ID), nil) ioutil.WriteFile( fmt.Sprintf("%s.pdf", ID), body,