Smartling / api-sdk-php

SDK for integrating with the Smartling API. The Smartling API allows developers to upload language specific resource files and download the translations of those files for easy integration within their application. http://docs.smartling.com
Apache License 2.0
6 stars 15 forks source link

Add client_lib_id into user-agent of all http requests #46

Closed dimitrystd closed 8 years ago

dimitrystd commented 8 years ago

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:

dimitrystd commented 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