twitter4j.util
Class ImageUpload

java.lang.Object
  extended by twitter4j.util.ImageUpload
Direct Known Subclasses:
ImageUpload.ImgLyOAuthUploader, ImageUpload.TweetPhotoOAuthUploader, ImageUpload.TwitgooOAuthUploader

Deprecated. use twitter4j.media.ImageUploader and twitter4j.media.ImageUploaderFactory#getInstance() instead

public abstract class ImageUpload
extends java.lang.Object

Since:
Twitter4J 2.1.3
Author:
Rémy Rakic - remy.rakic at gmail.com

Nested Class Summary
static class ImageUpload.ImgLyOAuthUploader
          Deprecated.  
static class ImageUpload.TweetPhotoOAuthUploader
          Deprecated.  
static class ImageUpload.TwitgooOAuthUploader
          Deprecated.  
 
Field Summary
static java.lang.String DEFAULT_TWITPIC_API_KEY
          Deprecated.  
 
Constructor Summary
ImageUpload()
          Deprecated.  
 
Method Summary
static ImageUpload getImgLyUploader(OAuthAuthorization auth)
          Deprecated. use twitter4j.media.ImageUploaderFactory#getInstance() instead
static ImageUpload getTweetPhotoUploader(java.lang.String tweetPhotoAPIKey, OAuthAuthorization auth)
          Deprecated. use twitter4j.media.ImageUploaderFactory#getInstance() instead
static ImageUpload getTwippleUploader(OAuthAuthorization auth)
          Deprecated. use twitter4j.media.ImageUploaderFactory#getInstance() instead
static ImageUpload getTwitgooUploader(OAuthAuthorization auth)
          Deprecated. use twitter4j.media.ImageUploaderFactory#getInstance() instead
static ImageUpload getTwitpicUploader(BasicAuthorization auth)
          Deprecated. use twitter4j.media.ImageUploaderFactory#getInstance() instead
static ImageUpload getTwitpicUploader(java.lang.String twitpicAPIKey, OAuthAuthorization auth)
          Deprecated. use twitter4j.media.ImageUploaderFactory#getInstance() instead
static ImageUpload getTwitpicUploader(Twitter twitter)
          Deprecated. use twitter4j.media.ImageUploaderFactory#getInstance() instead
static ImageUpload getYFrogUploader(BasicAuthorization auth)
          Deprecated. use twitter4j.media.ImageUploaderFactory#getInstance() instead
static ImageUpload getYFrogUploader(java.lang.String userId, OAuthAuthorization auth)
          Deprecated. use twitter4j.media.ImageUploaderFactory#getInstance() instead
static ImageUpload getYFrogUploader(Twitter twitter)
          Deprecated. use twitter4j.media.ImageUploaderFactory#getInstance() instead
abstract  java.lang.String upload(java.io.File image)
          Deprecated.  
abstract  java.lang.String upload(java.io.File image, java.lang.String message)
          Deprecated.  
abstract  java.lang.String upload(java.lang.String imageFileName, java.io.InputStream imageBody)
          Deprecated.  
abstract  java.lang.String upload(java.lang.String imageFileName, java.io.InputStream imageBody, java.lang.String message)
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TWITPIC_API_KEY

public static java.lang.String DEFAULT_TWITPIC_API_KEY
Deprecated. 
Constructor Detail

ImageUpload

public ImageUpload()
Deprecated. 
Method Detail

upload

public abstract java.lang.String upload(java.io.File image)
                                 throws TwitterException
Deprecated. 
Throws:
TwitterException

upload

public abstract java.lang.String upload(java.io.File image,
                                        java.lang.String message)
                                 throws TwitterException
Deprecated. 
Throws:
TwitterException

upload

public abstract java.lang.String upload(java.lang.String imageFileName,
                                        java.io.InputStream imageBody)
                                 throws TwitterException
Deprecated. 
Throws:
TwitterException

upload

public abstract java.lang.String upload(java.lang.String imageFileName,
                                        java.io.InputStream imageBody,
                                        java.lang.String message)
                                 throws TwitterException
Deprecated. 
Throws:
TwitterException

getTwitpicUploader

public static ImageUpload getTwitpicUploader(Twitter twitter)
                                      throws TwitterException
Deprecated. use twitter4j.media.ImageUploaderFactory#getInstance() instead

Returns an image uploader to Twitpic. Handles both BasicAuth and OAuth. Note: When using OAuth, the Twitpic API Key needs to be specified, either with the field ImageUpload.DEFAULT_TWITPIC_API_KEY, or using the getTwitpicUploader (String twitpicAPIKey, OAuthAuthorization auth) method

Throws:
TwitterException

getTwitpicUploader

public static ImageUpload getTwitpicUploader(BasicAuthorization auth)
Deprecated. use twitter4j.media.ImageUploaderFactory#getInstance() instead

Returns a BasicAuth image uploader to Twitpic


getTwitpicUploader

public static ImageUpload getTwitpicUploader(java.lang.String twitpicAPIKey,
                                             OAuthAuthorization auth)
Deprecated. use twitter4j.media.ImageUploaderFactory#getInstance() instead

Returns an OAuth image uploader to Twitpic


getTweetPhotoUploader

public static ImageUpload getTweetPhotoUploader(java.lang.String tweetPhotoAPIKey,
                                                OAuthAuthorization auth)
Deprecated. use twitter4j.media.ImageUploaderFactory#getInstance() instead

Returns an OAuth image uploader to TweetPhoto


getYFrogUploader

public static ImageUpload getYFrogUploader(Twitter twitter)
                                    throws TwitterException
Deprecated. use twitter4j.media.ImageUploaderFactory#getInstance() instead

Returns an image uploader to YFrog. Handles both BasicAuth and OAuth

Throws:
TwitterException

getYFrogUploader

public static ImageUpload getYFrogUploader(BasicAuthorization auth)
Deprecated. use twitter4j.media.ImageUploaderFactory#getInstance() instead

Returns a BasicAuth image uploader to YFrog


getYFrogUploader

public static ImageUpload getYFrogUploader(java.lang.String userId,
                                           OAuthAuthorization auth)
Deprecated. use twitter4j.media.ImageUploaderFactory#getInstance() instead

Returns an OAuth image uploader to YFrog


getImgLyUploader

public static ImageUpload getImgLyUploader(OAuthAuthorization auth)
Deprecated. use twitter4j.media.ImageUploaderFactory#getInstance() instead

Returns an OAuth image uploader to img.ly


getTwitgooUploader

public static ImageUpload getTwitgooUploader(OAuthAuthorization auth)
Deprecated. use twitter4j.media.ImageUploaderFactory#getInstance() instead

Returns an OAuth image uploader to Twitgoo


getTwippleUploader

public static ImageUpload getTwippleUploader(OAuthAuthorization auth)
Deprecated. use twitter4j.media.ImageUploaderFactory#getInstance() instead

Returns an OAuth image uploader to Twipple



Copyright © 2011. All Rights Reserved.