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

PATCH #27

Open
oliverburton opened this issue Apr 26, 2018 · 1 comment
Open

PATCH #27

oliverburton opened this issue Apr 26, 2018 · 1 comment

Comments

@oliverburton
Copy link

Hi,
the patch function isn't working as expected in the ApiClient.php

I replaced it with the following locally and it's working

  public function patch($endpoint, $body, array $params = [])
    {
     
        $token = $this->generateAuthToken();
        $request = $this->client->createRequest('PATCH', $this->buildUrl($endpoint, $params),
            ['headers' => ['auth-token' => $token,
                           'Content-Type' => self::$allowedFormats[$this->format]
                          ]
            ]);
        $bodyStream = Stream::factory($body);
        $request->setBody($bodyStream);

    
        return $this->call($request);
    }

    
@sp3c1
Copy link

sp3c1 commented Apr 28, 2018

@chrishowarth

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

No branches or pull requests

2 participants