Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Unable to retrieve any records from any endpoint in WFM #12

@notscottsmith

Description

@notscottsmith

Hi,

I'm trying to use your library but it's returning errors which look to be related to a partial change or removal of Guzzle code.

It was only pulled 2 days ago (24/Nov) and is version 0.3.1.

Error:

PHP Notice:  Undefined property: Sminnee\WorkflowMax\ApiClient::$fetcher in [...]/vendor/sminnee/workflowmax-php/src/ApiClient.php on line 173
PHP Fatal error:  Uncaught TypeError: Argument 2 passed to Sminnee\WorkflowMax\ApiCall::__construct() must be an instance of GuzzleHttp\Client, null given, called in [...]/vendor/sminnee/workflowmax-php/src/ApiClient.php on line 173 and defined in [...]/vendor/sminnee/workflowmax-php/src/ApiCall.php:25
Stack trace:
#0 [...]/vendor/sminnee/workflowmax-php/src/ApiClient.php(173): Sminnee\WorkflowMax\ApiCall->__construct()
#1 [...]/vendor/sminnee/workflowmax-php/src/Connector/JobConnector.php(57): Sminnee\WorkflowMax\ApiClient->apiCall()
#2 [...]/wfm-float-sync.php(18): Sminnee\WorkflowMax\Connector\JobConnector->current()
#3 {main}
  thrown in [...]/vendor/sminnee/workflowmax-php/src/ApiCall.php on line 25

Code:

<?php

// include auto loaded composer libraries
require __DIR__ . '/vendor/autoload.php';

use Sminnee\WorkflowMax\ApiClient;
use Sminnee\WorkflowMax\IterMiner\IterMiner;

$wfmAccountKey = '...;
$wfmApiKey = '...';

$wfm = new ApiClient([
        'api_key' => $wfmApiKey,
        'account_key' => $wfmAccountKey,
]);

$jobs = $wfm->job()->current();

print_r($jobs);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions