You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.
I understand webhooks for github deploy events or tracking web page views but what about data that one only wants to pull in on a daily basis (or when a webhook/push is not viable)? Some examples off the top of my head:
Track twitter followers (want to insert into db each night)
Ingest fitbit/other tracker data that does not support webhooks
Potentially syncing with MS HealthVault
Thanks!
The text was updated successfully, but these errors were encountered:
For example for tracking Twitter followers, you will need to add a tache cron which will send an unique event for every follower (using the id argument in the events/track to avoid duplicate).
Example in python:
from reportr import Reportr
# Create a Reportr Client
client = Reportr(
host="http://www.reportr.io",
token="--token--")
# Define model for our event
client.model("twitter", "follower",
name="Followers",
description="Number of twitter followers.",
icon="$twitter")
# Get followers
followers = twitter.get_followers()
for follower in followers:
# Track the follower
# id=follower.username is used to be sure to not rack twice the same follower
client.track("twitter", "follower", id=follower.username, properties={
"username": follower.username,
})
I understand webhooks for github deploy events or tracking web page views but what about data that one only wants to pull in on a daily basis (or when a webhook/push is not viable)? Some examples off the top of my head:
Thanks!
The text was updated successfully, but these errors were encountered: