I have the PHP example working:
https://bitbucket.org/atlassianlabs/atlassian-oauth-examples/src/master/php/
However, I would like to try to create a request. However from the base example (Why are there so many dependencies?) I do not see a way to include custom headers with the JSON data to create an issue.
https://developer.atlassian.com/server/jira/platform/jira-rest-api-example-create-issue-7897248/
Perhaps this is built in? But there is code in so many places it is hard to track down what to do. could someone with more experience explain this process?