arduino and twitter

im new in arduino…my project is like a digital combinational lock and when the user entered the correct code and entered the premises, i should be able to make a tweet in Twitter saying that an entry has been made at … im starting to learn arduino ide and its programming language and i dont know how to start it, does someone have a code that works similar like this? i could study it and modify it according to my preferences…please help me…

...and i dont know how to start it

Do a forum search for "twitter", then start reading all the previous twitter discussions and looking at the posted code. Lot of info there.