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

Feature/pass headers #25

Merged
merged 10 commits into from
Feb 16, 2017
Merged

Feature/pass headers #25

merged 10 commits into from
Feb 16, 2017

Conversation

scottusrobus
Copy link
Contributor

Adds header support, along the same lines as @ksheurs added to the Ruby Client. Headers can be passed as an array via the last param (either the second or third param depending on the method).

Example:

$customer = \VHX\Customers::create(array(
  'name' => 'First Last',
  'email' => 'customer@email.com',
  'product' => 'https://api.vhx.tv/products/1'
), array(
  'VHX-Client-IP' => '0.0.0.0'
));

@ksheurs 👀

@ksheurs
Copy link

ksheurs commented Feb 8, 2017

yay headers! nice @scottusrobus !

@scottusrobus scottusrobus merged commit bd13db2 into master Feb 16, 2017
@scottusrobus scottusrobus deleted the feature/pass-headers branch February 16, 2017 23:06
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.

2 participants