You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 2, 2018. It is now read-only.
<?phpnamespaceApp\AppBundle\Services;
useOrkestra\Bundle\GuzzleBundle\Services\ServiceasAbstractService;
useOrkestra\Bundle\GuzzleBundle\Services\Annotation\Command;
useOrkestra\Bundle\GuzzleBundle\Services\Annotation\Doc;
useOrkestra\Bundle\GuzzleBundle\Services\Annotation\Param;
useOrkestra\Bundle\GuzzleBundle\Services\Annotation\Headers;
useOrkestra\Bundle\GuzzleBundle\Services\Annotation\Type;
class WaniKaniService extends AbstractService
{
/** * @Command(name="user_information", method="GET", uri="/api/user/{api_key}/user-information") * @Doc("Get User Information") * @Param(name="api_key", type="string", required="true") */publicfunctiongetUserInformationCommand()
{
//Here you can manipulate the response, you can bind it to an object for examplereturn$this->getResponse();
}
}
It looks like you have everything set up correctly in your code, I would make sure to have the latest version of both Guzzle and this bundle. Guzzle 3 inserts params differently from previous versions; you would use double brackets {{api_key}} for guzzle versions less than 3.
I will need to update my version requirement in composer! Let me know if you found the solution to this! Thanks
Trying to rig up an api call like so:
But my command appears to be calling the following, triggering a 404:
Here is my config:
The command:
And some client code:
Where I finally get the following output:
Am I doing something wrong? What is the best way to debug this?
Thanks much
The text was updated successfully, but these errors were encountered: