carlsverre/mixpanel-node — pull request #12 by watson (2012-11-19 00:21:32+00:00)
Title: Allow importing of old events

Implemented the `/import` endpoint.

Instead of using two different methods - e.g. `mixpanel.track()` and `mixpanel.import()` - I've just modified the `track` method to allow the `time` property. If given, the `/import` endpoint will be used instead of the `/track` endpoint, e.g:

```javascript
// import old event
mixpanel.track("my event", {
time: new Date(2012, 4, 20, 12, 34, 56)
});
```