#include <SPI.h> 
#include <Ethernet2.h> // if you have ethernet shield V1: # include <Ethernet.h>
#include <Twitter.h> 

byte mac[] =  
 {  0x90, 0xA2, 0xDA, 0x10, 0xC5, 0xDD  };  // change the mac @ with the mac @ of your shield
Twitter twitter("923975243101818882-LdnxHIwOU0hgacaB0Fi8PzNlswCotkk"); // put your secret key here
char msg[] = "Hello World, My Name is Ahmed Nouira^^"; // change the msg if you want
void setup() 
{ 
 delay(1000); 
 Ethernet.begin(mac); 
 Serial.begin(9600); 
 Serial.println("connecting ..."); 
 if (twitter.post(msg)) { 
 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() 
{ 
}
