account.go
changeset 235 263da7f71f03
parent 232 de13b1d39099
child 238 1c0042e76902
equal deleted inserted replaced
234:e37050f8a4bf 235:263da7f71f03
    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