Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix client version and add user agent platform info #62

Merged
merged 5 commits into from
Oct 16, 2018

Conversation

ddattee
Copy link
Contributor

@ddattee ddattee commented Oct 11, 2018

Link to the issue

This resolves #60 #61

Reason for this PR

The version returned by the client is not the one tagged in the repository.
We needed to add some informations on the platform using the SDK to help integration and debug.

What does the PR do

Sync the version with the repo.
Allow to add platform information to SDK user agent.

How to test

On the client when calling Client::VERSION the version returned should be 0.2.4.
When setting userAgentDetails informations on ClientOptions all call made by the SDK should contain the platform used and its version

@ddattee ddattee added the bug Something isn't working label Oct 11, 2018
@ddattee ddattee added this to the v0.3 milestone Oct 11, 2018
@ddattee ddattee self-assigned this Oct 11, 2018
@ddattee
Copy link
Contributor Author

ddattee commented Oct 11, 2018

I'm gonna add the solution for #61

@ddattee ddattee changed the title #60 fix client version Fix client version and add user angent platform info Oct 11, 2018
@ddattee ddattee changed the title Fix client version and add user angent platform info Fix client version and add user agent platform info Oct 11, 2018
*/
public function setUserAgentDetails($plateform, $version)
{
$this->headers['User-Agent'] .= " ($plateform;$version)";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not supports updates (calling the method more than once)

@ronan-gloo ronan-gloo added the enhancement New feature or request label Oct 11, 2018
@ronan-gloo ronan-gloo merged commit f7163aa into shoppingflux:develop Oct 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants