Don't know how to get OAuth or How to use it in My Curl Function

Covers oAuth and the types of tokens,

From your code snippet I have no idea what kind of token you may need