implement some function for calling twitter api