New api break my old code

should i add
'Authorization: OAuth <access token>'
on curl httpheader array?

if that’s okay how i generate OAuth token?