Skip to content

Commit

Permalink
NO-ISSUE Modify user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang-33 committed Jun 30, 2023
1 parent 3b0bcfb commit d375845
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/clients/channel-access-token/lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/1.0.0/PHP';
protected $userAgent = 'LINE-BotSDK-PHP/8';

/**
* Debug switch (default set to false)
Expand Down
2 changes: 1 addition & 1 deletion src/clients/insight/lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/1.0.0/PHP';
protected $userAgent = 'LINE-BotSDK-PHP/8';

/**
* Debug switch (default set to false)
Expand Down
2 changes: 1 addition & 1 deletion src/clients/liff/lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/1.0.0/PHP';
protected $userAgent = 'LINE-BotSDK-PHP/8';

/**
* Debug switch (default set to false)
Expand Down
2 changes: 1 addition & 1 deletion src/clients/manage-audience/lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/1.0.0/PHP';
protected $userAgent = 'LINE-BotSDK-PHP/8';

/**
* Debug switch (default set to false)
Expand Down
2 changes: 1 addition & 1 deletion src/clients/messaging-api/lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/1.0.0/PHP';
protected $userAgent = 'LINE-BotSDK-PHP/8';

/**
* Debug switch (default set to false)
Expand Down
1 change: 1 addition & 0 deletions tools/gen-oas-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ for schema in "${CLIENT_SCHEMAS[@]}"; do
-i $REPO_ROOT_DIR/line-openapi/$schema.yml \
-g php \
-o $REPO_ROOT_DIR/src/clients/$schema \
--http-user-agent LINE-BotSDK-PHP/8 \
--additional-properties="invokerPackage=LINE\Clients\\$camelSchemaName" \
--additional-properties="variableNamingConvention=camelCase"
done
Expand Down

0 comments on commit d375845

Please sign in to comment.