Skip to content

Commit

Permalink
feat: VK.DefaultHandler make public
Browse files Browse the repository at this point in the history
  • Loading branch information
SevereCloud committed Jan 11, 2022
1 parent f4c5853 commit 0593eb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func NewVK(tokens ...string) *VK {
vk.accessTokens = tokens
vk.Version = Version

vk.Handler = vk.defaultHandler
vk.Handler = vk.DefaultHandler

vk.MethodURL = MethodURL
vk.Client = http.DefaultClient
Expand Down Expand Up @@ -207,8 +207,8 @@ func buildQuery(sliceParams ...Params) (context.Context, url.Values) {
return ctx, query
}

// defaultHandler provides access to VK API methods.
func (vk *VK) defaultHandler(method string, sliceParams ...Params) (Response, error) {
// DefaultHandler provides access to VK API methods.
func (vk *VK) DefaultHandler(method string, sliceParams ...Params) (Response, error) {
u := vk.MethodURL + method
ctx, query := buildQuery(sliceParams...)
attempt := 0
Expand Down

0 comments on commit 0593eb5

Please sign in to comment.