File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change
1
+ 3.0.6
2
+ - Add tracking to SDK as dependecy
3
+
1
4
3.0.5
2
5
- Added tracking to requests
3
6
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ function __construct (
41
41
$ api_key ,
42
42
$ rest_endpoint = "https://rest-api.telesign.com " ,
43
43
$ source = "php_telesign " ,
44
- $ sdk_version = null ,
44
+ $ sdk_version_origin = null ,
45
+ $ sdk_version_dependency = null ,
45
46
$ timeout = 10 ,
46
47
$ proxy = null ,
47
48
$ handler = null
@@ -56,11 +57,15 @@ function __construct (
56
57
"handler " => $ handler
57
58
]);
58
59
59
- $ current_version = $ sdk_version ?? Config::getVersion ();
60
+ $ current_version = $ sdk_version_origin ?? Config::getVersion ();
60
61
$ php_version = PHP_VERSION ;
61
62
$ guzzle_version = Client::MAJOR_VERSION ;
62
63
63
64
$ this ->user_agent = "TeleSignSDK/php PHP/ $ php_version Guzzle/ $ guzzle_version OriginatingSDK/ $ source SDKVersion/ $ current_version " ;
65
+
66
+ if ($ source !== 'php_telesign ' ) {
67
+ $ this ->user_agent .= " DependencySDKVersion/ $ sdk_version_dependency " ;
68
+ }
64
69
}
65
70
66
71
function setRestEndpoint ($ rest_endpoint ) {
You can’t perform that action at this time.
0 commit comments