Skip to content

Common class for headers #529

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

Merged
merged 5 commits into from
Mar 7, 2019
Merged

Conversation

mediumTaj
Copy link
Contributor

Summary

This pull request adds a common class to get default headers.

@mediumTaj mediumTaj requested a review from mamoonraja March 6, 2019 19:56
@@ -177,7 +177,11 @@ public bool Message(Callback<Dictionary<string, JObject>> callback, string works
}
}

req.Headers["X-IBMCloud-SDK-Analytics"] = "service_name=conversation;service_version=V1;operation_id=Message";
foreach(KeyValuePair<string, string> kvp in Common.GetDefaultheaders("conversation", "V1", "Message"))
Copy link
Member

Choose a reason for hiding this comment

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

Don't we need to do the same change for other services like LT for instance.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes! This is merging to the V3 branch though. I only have Assistant here so far. The rest are taken care of once I fully regenerate.

@mediumTaj mediumTaj merged commit ac24c36 into v3.0.0 Mar 7, 2019
@mediumTaj mediumTaj deleted the feature-v3-common-class-for-headers branch March 7, 2019 16:53
@mediumTaj
Copy link
Contributor Author

🎉 This PR is included in version 3.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants