I am a beginner to use this api.
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;
namespace Twitter
{
This simple code not give any error but its not also post my tweet...
and when i debug the code then it will give like following....
Exception
The remote server return an error :(401) Unauthorized
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;
namespace Twitter
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
TwitterCredentials.SetCredentials("xxxxxxx", "xxxxx", "xxxxxx", "xxxxxx");
TwitterCredentials.ApplicationCredentials = TwitterCredentials.CreateCredentials("xxxxx", "xxxxxx", "xxxxx", "xxxxxx");
}
private void button1_Click(object sender, EventArgs e)
{
var tweet = Tweet.PublishTweet("C# API Test");
}
}
}This simple code not give any error but its not also post my tweet...
and when i debug the code then it will give like following....
Exception
The remote server return an error :(401) Unauthorized