equal
deleted
inserted
replaced
53 var endPoint string |
53 var endPoint string |
54 method := rest.Post |
54 method := rest.Post |
55 strID := strconv.FormatInt(id, 10) |
55 strID := strconv.FormatInt(id, 10) |
56 |
56 |
57 switch op { |
57 switch op { |
58 case "follow", "unfollow", "block", "unblock", "mute", "unmute": |
58 case "follow", "unfollow", "block", "unblock", "mute", "unmute", "pin", "unpin": |
59 endPoint = "accounts/" + strID + "/" + op |
59 endPoint = "accounts/" + strID + "/" + op |
60 default: |
60 default: |
61 return nil, ErrInvalidParameter |
61 return nil, ErrInvalidParameter |
62 } |
62 } |
63 |
63 |