Uplload video on twiter in java : Hi i am trting to upload a video on twitter i am using following code

 private UploadedMedia uploadMediaChunkedInit(long size) throws TwitterException {
		return new UploadedMedia(post(
				conf.getUploadBaseURL() + "media/upload.json",
				new HttpParameter[] { new HttpParameter("command", CHUNKED_INIT),
						new HttpParameter("media_type", "video/mp4"), new HttpParameter("total_bytes", size) })				.asJSONObject());
	}




Where i am geting following error: Method post is not defined 

i got code from here.

[https://github.com/yusuke/twitter4j/pull/226/commits/73b43c1ae4511d3712118f61f983bcbca4ef0c59][1]




  if any one can help me plz  

Thanks