implement some function for calling twitter API