Example #1
0
        // Posts the status text and an image.  Note that the url will be appended onto the tweet so you don\'t have the full 140 characters
        public static void postStatusUpdate(string status, string pathToImage)
        {
#if UNITY_ANDROID
            TWITTER.postStatusUpdate(status, System.IO.File.ReadAllBytes(pathToImage));
#elif UNITY_IPHONE
            TWITTER.postStatusUpdate(status, pathToImage);
#endif
        }
Example #2
0
 // Performs a request for any available Twitter API methods. methodType must be either "get" or "post".  path is the
 // url fragment from the API docs (excluding https://api.twitter.com) and parameters is a dictionary of key/value pairs
 // for the given method.  See Twitter's API docs for all available methods
 public static void performRequest(string methodType, string path, Dictionary <string, string> parameters)
 {
     TWITTER.performRequest(methodType, path, parameters);
 }
Example #3
0
 // Posts the status text.  Be sure status text is less than 140 characters!
 public static void postStatusUpdate(string status)
 {
     TWITTER.postStatusUpdate(status);
 }
Example #4
0
 // Logs out the current user
 public static void logout()
 {
     TWITTER.logout();
 }
Example #5
0
 // Logs in the user using oAuth which request displaying the login prompt via an in app browser
 public static void showLoginDialog()
 {
     TWITTER.showLoginDialog();
 }
Example #6
0
 // Checks to see if there is a currently logged in user
 public static bool isLoggedIn()
 {
     return(TWITTER.isLoggedIn());
 }
Example #7
0
 // Initializes the Twitter plugin and sets up the required oAuth information
 public static void init(string consumerKey, string consumerSecret)
 {
     TWITTER.init(consumerKey, consumerSecret);
 }