Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additionalHeaders to the header of the request #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JonoHall
Copy link

@JonoHall JonoHall commented Apr 6, 2021

additionalHeaders can be set in the client, but they are not being used for the reponse. Looks like they are missing from the getHeaders() function.

This simple fix, allows users to set headers such as the Idempotency header as per the API manual:

$client = new \PrintNode\Client($credentials);
$client->additionalHeaders = array('X-Idempotency-Key: abcde12345');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant