equal
deleted
inserted
replaced
99 params["focus"] = *focus |
99 params["focus"] = *focus |
100 } |
100 } |
101 |
101 |
102 endPoint := "media/" + strconv.FormatInt(mediaID, 10) |
102 endPoint := "media/" + strconv.FormatInt(mediaID, 10) |
103 var attachment Attachment |
103 var attachment Attachment |
104 if err := mc.apiCall(endPoint, rest.Put, params, nil, nil, &attachment); err != nil { |
104 if err := mc.apiCall("v1/"+endPoint, rest.Put, params, nil, nil, &attachment); err != nil { |
105 return nil, err |
105 return nil, err |
106 } |
106 } |
107 return &attachment, nil |
107 return &attachment, nil |
108 } |
108 } |