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

Feature(Connector): New configs for Covid Tracking Api #143

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from
7 changes: 7 additions & 0 deletions api-connectors/CovidTracking/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"tables": [
"places",
"daily"

]
}
24 changes: 24 additions & 0 deletions api-connectors/CovidTracking/all_states.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"version": 1,
"request": {
"url": "http://api.covidtracking.com/v2/states.json",
"method": "GET",
"params": {}

},
"response": {
"ctype": "application/json",
"tablePath": "$.[*]",
"schema": {
"headline": {
"target": "$.links.self",
"type": "string"
},
"url": {
"target": "$.meta.build_time",
"type": "string"
}
},
"orient": "records"
}
}
23 changes: 23 additions & 0 deletions api-connectors/CovidTracking/national.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"version": 1,
"request": {
"url": "http://api.covidtracking.com/v2/us/daily.json",
"method": "GET",
"params": {}
},
"response": {
"ctype": "application/json",
"tablePath": "$.[*]",
"schema": {
"headline": {
"target": "$.links.self",
"type": "string"
},
"url": {
"target": "$.meta.build_time",
"type": "string"
}
},
"orient": "records"
}
}
24 changes: 24 additions & 0 deletions api-connectors/CovidTracking/national_daily.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"version": 1,
"request": {
"url": "http://api.covidtracking.com/v2/us/daily/{date}.json",
"method": "GET",
"params": {}

},
"response": {
"ctype": "application/json",
"tablePath": "$.[*]",
"schema": {
"headline": {
"target": "$.links.self",
"type": "string"
},
"url": {
"target": "$.meta.build_time",
"type": "string"
}
},
"orient": "records"
}
}
24 changes: 24 additions & 0 deletions api-connectors/CovidTracking/state_historical.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"version": 1,
"request": {
"url": "http://api.covidtracking.com/v2/states/{state}/daily.json",
"method": "GET",
"params": {}

},
"response": {
"ctype": "application/json",
"tablePath": "$.[*]",
"schema": {
"headline": {
"target": "$.links.self",
"type": "string"
},
"url": {
"target": "$.meta.build_time",
"type": "string"
}
},
"orient": "records"
}
}
24 changes: 24 additions & 0 deletions api-connectors/CovidTracking/states.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"version": 1,
"request": {
"url": "https://api.covidtracking.com/v2/states/{state}.json",
"method": "GET",
"params": {}

},
"response": {
"ctype": "application/json",
"tablePath": "$.[*]",
"schema": {
"headline": {
"target": "$.links.self",
"type": "string"
},
"url": {
"target": "$.meta.build_time",
"type": "string"
}
},
"orient": "records"
}
}
24 changes: 24 additions & 0 deletions api-connectors/CovidTracking/states_daily.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"version": 1,
"request": {
"url": "https://api.covidtracking.com/v2/states/{state}/{date}.json",
"method": "GET",
"params": {}

},
"response": {
"ctype": "application/json",
"tablePath": "$.[*]",
"schema": {
"headline": {
"target": "$.links.self",
"type": "string"
},
"url": {
"target": "$.meta.build_time",
"type": "string"
}
},
"orient": "records"
}
}
2 changes: 2 additions & 0 deletions api-connectors/ticketmaster/_meta.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"tables": [
"weather",
"historical_weather",
"events"
]
}
6 changes: 4 additions & 2 deletions api-connectors/times/_meta.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"tables": [
"article"
"article",
"tag",
"section"
]
}
}
4 changes: 3 additions & 1 deletion api-connectors/twitter/_meta.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"tables": [
"tweets"
"tweets",
"followers",
"friends"
]
}
39 changes: 39 additions & 0 deletions api-connectors/twitter/followers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"version": 1,
"request": {
"url": "https://api.twitter.com/1.1/followers/ids.json",
"method": "GET",
"authorization": {
"type": "OAuth2",
"grantType": "ClientCredentials",
"tokenServerUrl": "https://api.twitter.com/oauth2/token"
},
"params": {
"user_id": false,
"count": false,
"screen_name": false,
"stringify_ids":false
},
"pagination": {
"type": "offset",
"offsetKey": "offset",
"limitKey": "count",
"maxCount": 5000
}
},
"examples": {
"user_id": "'12345'",
"count": "'noradio'"
},
"response": {
"ctype": "application/json",
"tablePath": "$.ids[*]",
"schema": {
"ids": {
"target": "$",
"type": "int"
}
},
"orient": "records"
}
}
39 changes: 39 additions & 0 deletions api-connectors/twitter/friends.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"version": 1,
"request": {
"url": "https://api.twitter.com/1.1/friends/ids.json",
"method": "GET",
"authorization": {
"type": "OAuth2",
"grantType": "ClientCredentials",
"tokenServerUrl": "https://api.twitter.com/oauth2/token"
},
"params": {
"user_id": false,
"count": false,
"screen_name": false,
"stringify_ids":false
},
"pagination": {
"type": "offset",
"offsetKey": "offset",
"limitKey": "count",
"maxCount": 5000
}
},
"examples": {
"user_id": "'12345'",
"count": "'noradio'"
},
"response": {
"ctype": "application/json",
"tablePath": "$.ids[*]",
"schema": {
"ids": {
"target": "$",
"type": "int"
}
},
"orient": "records"
}
}