Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

getVerifiedEmailAddresses #142

Open
cdogmx opened this issue Feb 24, 2017 · 2 comments
Open

getVerifiedEmailAddresses #142

cdogmx opened this issue Feb 24, 2017 · 2 comments

Comments

@cdogmx
Copy link

cdogmx commented Feb 24, 2017

getting an error when calling this... Using DEV version of sdk and guzzle 6

Catchable fatal error: Argument 1 passed to GuzzleHttp\Client::send() must implement interface Psr\Http\Message\RequestInterface, instance of GuzzleHttp\Psr7\Response given, called in //constantcontact/constantcontact/src/Ctct/Services/AccountService.php on line 32 and defined in //vendor/guzzlehttp/guzzle/src/Client.php on line 101

@tw2113
Copy link

tw2113 commented Sep 12, 2019

Getting the same, and not quite sure how to get around.

@mattybaer
Copy link

I honestly have no idea how to use github and create a pull request properly. I do have a code fix that fixes this issue.

In \vendor\constantcontact\constantcontact\src\Ctct\Services\AccountService.php on line 29

Change:

    $request = parent::sendRequestWithoutBody($accessToken, 'GET', $baseUrl, $params);

    try {
        $response = parent::getClient()->send($request);

To:

try {
    $response = parent::sendRequestWithBody($accessToken, 'GET', $baseUrl, $params);

I know it is a bit late to the game, but I hope this helps y'all! If anybody can let me know how to create the pull request I can or better yet you could do it ;)

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

No branches or pull requests

3 participants