Mautic REST API using custom getCustomList process
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 205
- Forks
- 129
- PR merge metrics
- No merged PRs in 30d
Description
HI,
i was trying extract the contact from a particular period using mautic REST API using contact API.
$queryBuilder = new QueryBuilder();
$queryBuilder->setSelect("select * from leads");
$queryBuilder->setWhere($queryBuilder->expr()->eq('dateAdded', '2019-04-27 06:11:23'));
$contacts = $contactApi->getCustomList($queryBuilder);
When i execute and print the above query it returns like
Array
(
[select] => select * from leads
[where] => Mautic\QueryBuilder\WhereBuilder Object
(
[clauses:protected] => Array
(
[0] => Array
(
[col] => dateAdded
[expr] => eq
[val] => 2019-04-27 06:11:23
)
)
[composite:protected] =>
)
)
but after executing the query it produces the following error in my system
[2019-06-13 04:42:55] mautic.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\HttpException: "signature_invalid" at /var/www/html/mautic/vendor/willdurand/oauth-server-bundle/Service/OAuthServerService.php line 244 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\HttpException(code: 0): signature_invalid at /var/www/html/mautic/vendor/willdurand/oauth-server-bundle/Service/OAuthServerService.php:244)"} []
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the contact API call using getCustomList with the shown QueryBuilder input, then inspect OAuthServerService.php at line 244 and the request path that invokes it. Compare this failing request with a working REST API request; done means the cause of signature_invalid is identified and the custom process has a documented resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api, authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100