Closed jmleroux closed 8 years ago
@jmleroux
I guess there's a mistake here. There shouldn't be a trailing /clients
.
Could you either:
/clients
; or, worldia.textmaster.api.httpclient:
class: Textmaster\HttpClient\HttpClient
arguments:
- '%textmaster.api_key%'
- '%textmaster.api_secret%'
- [ base_uri: 'http://api.textmaster.com/%s' ]
Or use http://api.sandbox.textmaster.com/%s
whilst testing ;)
Hi @cdaguerre ,
firstly, thank you for the quick answer.
The /clients
could effectively be superfluous, but it's not the error source for sure. The error is raised because $this->client->getConfig('base_uri')->getPath()
returns the path, without host
and without scheme
.
It works with your last tag. Thanks !
Hello,
I want to use textmaster-api to build a connector between Textmaster and Akeneo.
I just started the project and made a basic command to test the API calls:
and declared my services in YAML:
But the command does not work and i get this error:
I traced the error and it comes from here https://github.com/worldia/textmaster-api/blob/master/lib/Textmaster/HttpClient/HttpClient.php#L192 This method return this string :
/v1/clients/public/locales
and it seems that we expectedhttp://api.textmaster.com/v1/clients/public/locales
Did i miss something in the configuration or in the instanciation ?
Best regards, JM