Skip to content

Commit

Permalink
Merge pull request #2 from Lord-Ofada/master
Browse files Browse the repository at this point in the history
Fixes and updates
  • Loading branch information
jcobhams authored May 2, 2021
2 parents 658ac3d + bcc48e6 commit 34e87a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (g *gomono) Information(id string) (*InformationResponse, error) {
}

var respTarget InformationResponse
err := g.makeRequest("POST", fmt.Sprintf("%v/accounts/%v", g.apiUrl, id), nil, nil, &respTarget)
err := g.makeRequest("GET", fmt.Sprintf("%v/accounts/%v", g.apiUrl, id), nil, nil, &respTarget)
if err != nil {
return nil, err
}
Expand Down
5 changes: 4 additions & 1 deletion responses.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ package gomono

type (
InformationResponse struct {
Meta struct{ DataStatus string } `json:"meta"`
Meta struct {
DataStatus string `json:"data_status"`
} `json:"meta"`
Account struct {
ID string `json:"_id"`
Name string `json:"name"`
Expand Down Expand Up @@ -60,6 +62,7 @@ type (
Narration string `json:"narration"`
Type string `json:"type"`
Category string `json:"category"`
Balance float64 `json:"balance"`
}
}

Expand Down

0 comments on commit 34e87a2

Please sign in to comment.