From 5fa7ca51e6f22cb8ae66fba27fa749f37e9ea104 Mon Sep 17 00:00:00 2001 From: Ali Error Date: Wed, 16 Oct 2019 08:48:23 +0330 Subject: [PATCH] Method is changed from post to get Fixed Invalid status code: 405, method is changed from post to get --- users.go | 1 - 1 file changed, 1 deletion(-) diff --git a/users.go b/users.go index d9cef137..ccfd22ce 100644 --- a/users.go +++ b/users.go @@ -453,7 +453,6 @@ func (user *User) FriendShip() error { &reqOptions{ Endpoint: fmt.Sprintf(urlFriendship, user.ID), Query: generateSignature(data), - IsPost: true, }, ) if err == nil {