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

Page tracking endpoint added #43

Merged
merged 2 commits into from Nov 9, 2016
Merged

Conversation

jonashelgemo
Copy link
Collaborator

  • All integrations now respond to the page-endpoint

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)

* All integrations now respond to the page-endpoint

* Documentation updated
Copy link
Owner

@jipiboily jipiboily left a 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 {
Copy link
Owner

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
Copy link
Owner

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 {
Copy link
Owner

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
Copy link
Collaborator Author

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 :)

@jonashelgemo
Copy link
Collaborator Author

Should be fixed now. Merge when you are ready :)

@jipiboily jipiboily merged commit 32bb09b into jipiboily:master Nov 9, 2016
@jipiboily
Copy link
Owner

@helgeblod there you go!

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

Successfully merging this pull request may close these issues.

None yet

2 participants