-
Notifications
You must be signed in to change notification settings - Fork 2
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
Client usage tracking #15
Conversation
* @param string $plugin_version | ||
* @param string $api_key | ||
*/ | ||
public function __construct( string $api_key, string $plugin_name, string $plugin_version ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe throw error here? User shouldn't encounter this error as dev will be forced to provide value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I try not to break client website. Throwing error could take all website down, I think we should avoid this. This class will not be created directly. Only trough Factory, where we ask to provide values, I think this should be enough to inform about this requirement.
class Omnisend { | ||
|
||
/** | ||
* @param $plugin string plugin using client name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add comment what this function does
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
https://omnisend.atlassian.net/browse/INT-782