Skip to content

Commit

Permalink
updating getstatement url
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Thomazi Bonicontro committed Jul 19, 2018
1 parent 32ed7e7 commit dbb3d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit dbb3d47

Please sign in to comment.