Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions socrata/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,26 @@ def update(self, uri, body):
data = json.dumps(body)
))

def give_incremental(self, uri):
"""
If this source is from a Gateway, initiates the incremental data push from
the agent
"""
return self._clone(post(
self.path(uri),
auth = self.auth
))

def give_full(self, uri):
"""
If this source is from a Gateway, initiates the full data push from
the agent.
"""
return self._clone(post(
self.path(uri),
auth = self.auth
))

def show_input_schema(self, uri, input_schema_id):
res = get(
self.path(uri.format(input_schema_id = input_schema_id)),
Expand Down