Update oauth.class.php

Added api->headers
Added