Skip to content

Commit

Permalink
fix: AuthRestore misspelling
Browse files Browse the repository at this point in the history
  • Loading branch information
SevereCloud committed Jan 7, 2020
1 parent f4997d3 commit 7ef99a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
### Установка

```shell
# go mod init mymodulename
go get github.com/SevereCloud/vksdk@latest
```

Expand Down
8 changes: 4 additions & 4 deletions api/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ func (vk *VK) AuthCheckPhone(params Params) (response int, err error) {
return
}

// AuthRetoreResponse struct
type AuthRetoreResponse struct {
// AuthRestoreResponse struct
type AuthRestoreResponse struct {
Success int `json:"success"`
SID string `json:"sid"`
}

// AuthRetore allows to restore account access using a code received via SMS.
// AuthRestore allows to restore account access using a code received via SMS.
//
// https://vk.com/dev/auth.restore
func (vk *VK) AuthRetore(params Params) (response AuthRetoreResponse, err error) {
func (vk *VK) AuthRestore(params Params) (response AuthRestoreResponse, err error) {
err = vk.RequestUnmarshal("auth.restore", params, &response)
return
}

0 comments on commit 7ef99a8

Please sign in to comment.