1 回答

TA貢獻(xiàn)1864條經(jīng)驗(yàn) 獲得超6個(gè)贊
解決了問(wèn)題。疏忽!
我了解到Twitter使用media/upload方法,然后通過(guò)跟蹤網(wǎng)絡(luò)流量media_id將其發(fā)送到account/update_profile_banner方法來(lái)更新值。
但這不是必需的。我更新了QueryStruct函數(shù)UpdateProfileBannerPhoto中BodyForm的,問(wèn)題解決了......
固定的:
func (s *AccountService) UpdateProfileBannerPhoto(params *AccountUpdateProfileBannerPhotoParams) (*User, *http.Response, error) {
user := new(User)
apiError := new(APIError)
resp, err := s.sling.New().Post("update_profile_banner.json").BodyForm(params).Receive(user, apiError)
return user, resp, relevantError(err, *apiError)
}
- 1 回答
- 0 關(guān)注
- 139 瀏覽
添加回答
舉報(bào)