problem tweeting with arduino

hello,

I’m using the simple post sketch from the twitter library and every time I try to connect,
error 0 appears on the serial output.

I’m using the Enc28j60 to connect to the internet.
Can someone help me fix it?

here is the code:

#include <SPI.h> // needed in Arduino 0019 or later
#include "etherShield.h"
#include "ETHER_28J60.h"   
#include <Twitter.h>

// The includion of EthernetDNS is not needed in Arduino IDE 1.0 or later.
// Please uncomment below in Arduino IDE 0022 or earlier.
//#include <EthernetDNS.h>


static uint8_t mac[6] = {0x54,0x55,0x58,0x10,0x00,0x24};
static uint8_t ip[4] = {192,168,22,222};
static uint16_t port = 80;
ETHER_28J60 e;
Twitter twitter("989650347047243777-ddCKJoPxVUlpxNelsHDt8lAUfutij1v");

// Message to post
char msg[] = "Hello, World! Eu sou o Ardulindo do tempo!";

void setup()
{
  delay(1000);
  e.setup(mac,ip,port);
  Serial.begin(9600);
  
  Serial.println("connecting ...");
  if (twitter.post(msg)) {
    // Specify &Serial to output received response to Serial.
    // If no output is required, you can just omit the argument, e.g.
    // int status = twitter.wait();
    int status = twitter.wait(&Serial);
    if (status == 200) {
      Serial.println("OK.");
    } else {
      Serial.print("failed : code ");
      Serial.println(status);
    }
  } else {
    Serial.println("connection failed.");
  }
}

void loop()
{
}

Post a link to that Twitter library, it is not available in the IDE library manager!

Twitter have depreciated some of there API's in the last few days and this may be the problem.