Closed dimitrystd closed 8 years ago
Reopened. Such implementation will work only for file upload. All other commands with send smartling-api-sdk-php
instead actual client (drupal; WP).
Just make 2 properties in BaseApiAbstract. They will be used for all requests and one more time for Upload. We used this approach in java and .net sdks
We get more and more traffic for FileAPI v2 and looking for an option how to monitor traffic from connectors for quick reaction to errors. The simplest and convenient for all solution to use "User-Agent" header field. The current sdk already has
client_lib_id
(introduce in #19) but it was added for another reason (indicate link between particular uploaded file and client lib version).DoD:
client_lib_id
and version as "User-Agent" for all http requests (doesn't mater GET\POST\DELETE)Guzzle/5.3.0 curl/7.35.0 PHP/5.5.9-1ubuntu4.14
smartling-api-sdk-php/2.0.2 Guzzle/5.3.0 curl/7.35.0 PHP/5.5.9-1ubuntu4.14
{client_lib_id}/{version}
2.0.0-g5
and2.0.0
branches