-
Notifications
You must be signed in to change notification settings - Fork 7
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
Page tracking endpoint added #43
Conversation
* All integrations now respond to the page-endpoint * Documentation updated
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.
A few tiny tiny things. Good job! 😀 🎉
@@ -17,6 +17,11 @@ func (fi FakeIntegration) Track(event integrations.Event) error { | |||
} | |||
|
|||
// Enabled returns wether or not the integration is enabled/configured | |||
func (fi FakeIntegration) Page(page integrations.Page) error { |
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.
Comment for that one is wrong :)
@@ -10,6 +10,8 @@ type Integration interface { | |||
// Track forwards the event to the integration | |||
Track(event Event) error | |||
|
|||
Page(page Page) error |
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.
A comment is missing for that one.
@@ -74,3 +76,43 @@ func (e Event) Validate() (missingParameters []string) { | |||
} | |||
return | |||
} | |||
|
|||
type Page struct { |
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.
Comment missing here too.
@@ -44,6 +45,7 @@ func (i Identification) Validate() (missingParameters []string) { | |||
return | |||
} | |||
|
|||
// Event defines the structure for the incoming event data from the API |
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 this as well as it was missing :)
Should be fixed now. Merge when you are ready :) |
Didn't update the README as the track-endpoint is not documentet there either. Might be a good idea to document the api as the api grows, but maybe it should be done using a tool that is more apropriate (eg http://raml.org/ or similar)