Closed (fixed)
Project:
Mautic API
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Aug 2020 at 18:29 UTC
Updated:
15 Oct 2020 at 17:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
kevinfunkPatch adds a new method, getList, to return an array from a Mautic API endpoint. It also creates a new method, initiateConnection, so I didn't have to repeat code.
Comment #3
jeremyr commentedPatch applies cleanly and in doing some basic test goes I was able to fetch lists from a Mautic instance.
A few house keeping items:
The comment above the this function
private function initiateConnection($endpoint)is{@inheritdoc}but since it's a private function, there is nothing to inherit from.There is an empty line between the comment and this function
public function getList($endpoint), however, since there is an interface I'd recommend adding it to the comment and function toMauticApiServiceInterface.php.I've rerolled the patch with my proposed changes.
Comment #4
jeremyr commentedOne more thing change... the docblock suggests the
$endpointshould be an array but it really should be a string. New patch to reflect that change.Comment #6
archnode commentedPatch looks good. Thank you!