Skip to content

Change Accept Header #680

Closed
Closed
@Moon-Hub

Description

@Moon-Hub

Like Issue #507 , working with the code-search, i want to change my accept header to the text-match header application/vnd.github.v3.text-match+json

Following along from the example in 507, my code:

// CONNECT TO API AND AUTHENTICATE SELF
$builder = new Github\HttpClient\Builder(new GuzzleClient());
$client = new \Github\Client($builder, 'application/vnd.github.v3.text-match+json');
$client->authenticate($user, $pwd, Github\Client::AUTH_HTTP_PASSWORD);

But, i'm greeted with: Fatal error: Uncaught Error: Class 'GuzzleClient' not found
So, what's wrong here?

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