Custom Headers for POST Call to tracking API endpoint


Hi ,
We have a requirement where we need to send the Oauth Token generated by our service to be send to the TrackingAPI end Point as a Header in the POST CALL. (We are using the Piwik Javascript tracking API).
Can someone Please give a short example on how to do it?

Thanks & Regards,