Skip to content

Commit

Permalink
add request method
Browse files Browse the repository at this point in the history
  • Loading branch information
pyama86 committed Dec 18, 2020
1 parent 5ee628b commit a429292
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libstns/stns.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ func (s *STNS) SetPopChallengeCode(f func(string) ([]byte, error)) {
s.popChallengeCode = f
}

func (s *STNS) Request(path, query string) (*Response, error) {
return s.client.Request(path, query)
}

func (s *STNS) ListUser() ([]*model.User, error) {
r, err := s.client.Request(usersEndpoint, "")
if err != nil {
Expand Down

0 comments on commit a429292

Please sign in to comment.