Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using Tweetinvi;
- using MetroFramework.Forms;
- using System.IO;
- namespace TwitterTestingAPP
- {
- public partial class Form1 : MetroFramework.Forms.MetroForm
- {
- public Form1()
- {
- InitializeComponent();
- //Your APP Tokens Here
- Auth.SetUserCredentials("","", "", "");
- }
- //[XTHX] This Will auto update a picture box And two text labels with The Twitter Name and PFP detected of your tokens
- private void Form1_Load(object sender, EventArgs e)
- {
- var user = User.GetAuthenticatedUser();
- pictureBox1.ImageLocation = user.ProfileImageUrl;
- metroLabel1.Text = user.Name;
- metroLabel2.Text ="@" + user.ScreenName;
- }
- // This will Tweet the content that u wrote in a text box
- private void metroButton1_Click(object sender, EventArgs e)
- {
- Tweet.PublishTweet(metroTextBox1.Text);
- MessageBox.Show("Success");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement