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

define and document the API structure #1

Closed
jipiboily opened this issue Apr 1, 2016 · 5 comments
Closed

define and document the API structure #1

jipiboily opened this issue Apr 1, 2016 · 5 comments
Assignees

Comments

@jipiboily
Copy link
Owner

No description provided.

@GabLeRoux
Copy link
Contributor

http://raml.org/ ?

@jipiboily jipiboily changed the title define and document the API structure define and document the API structure Apr 1, 2016
@jipiboily jipiboily added the ready label Apr 1, 2016
@jipiboily
Copy link
Owner Author

For now, probably just something in the README, as it might change a lot before 0.1, and before 1.0...and possibly Apiary + Blueprint. At least, that's what I had in mind. I'll look at RAML though.

Thanks!

@jipiboily
Copy link
Owner Author

At first, I think...

What we take from the API:

{
  context: {}, // optionnal, but can have IP of the user, user agent, version of the library used, etc
  timestamp: 123, // when the event triggered
  userID: 'some-user-id',
  userTraits: {} // User traits, most are custom. Some are required, per integration
}

What we send to the integrations:

{
  context: {}, // optionnal, but can have IP of the user, user agent, version of the library used, etc
  timestamp: 123, // when the event triggered
  userID: 'some-user-id',
  receivedAt: 123, // when Forwardlytics received the event
  userTraits: {} // User traits, most are custom. Some are required, per integration
}

@jipiboily
Copy link
Owner Author

That being said, the context won't be there to start with, as it is more appropriate for frontend libraries.

@jipiboily
Copy link
Owner Author

Now documented lightly in the README and the code.

@jipiboily jipiboily self-assigned this Apr 1, 2016
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

No branches or pull requests

2 participants