Advertisement
XTigerHyperXS

ss

Apr 22nd, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using Tweetinvi;
  11. using MetroFramework.Forms;
  12. using System.IO;
  13.  
  14.  
  15. namespace TwitterTestingAPP
  16. {
  17. public partial class Form1 : MetroFramework.Forms.MetroForm
  18. {
  19. public Form1()
  20. {
  21. InitializeComponent();
  22.  
  23. //Your APP Tokens Here
  24. Auth.SetUserCredentials("","", "", "");
  25. }
  26. //[XTHX] This Will auto update a picture box And two text labels with The Twitter Name and PFP detected of your tokens
  27. private void Form1_Load(object sender, EventArgs e)
  28. {
  29. var user = User.GetAuthenticatedUser();
  30. pictureBox1.ImageLocation = user.ProfileImageUrl;
  31. metroLabel1.Text = user.Name;
  32. metroLabel2.Text ="@" + user.ScreenName;
  33. }
  34.  
  35. // This will Tweet the content that u wrote in a text box
  36. private void metroButton1_Click(object sender, EventArgs e)
  37. {
  38.  
  39. Tweet.PublishTweet(metroTextBox1.Text);
  40.  
  41. MessageBox.Show("Success");
  42.  
  43.  
  44. }
  45.  
  46.  
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement