Skip to content

Changing accept header #507

Closed
Closed

Description

@m1guelpf

How can I change the accept header?
Thank you!

Activity

  1. acrobat commented on Jan 25, 2017

    @acrobat
    Collaborator

    Just pass it to the client constructor for the apiversion parameter

    Example:

    $builder = new Github\HttpClient\Builder(new GuzzleClient());
    $github = new Github\Client($builder, 'machine-man-preview'); //For the integrations early access "application/vnd.github.machine-man-preview+json"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions