Skip to content

Commit

Permalink
Fix data event
Browse files Browse the repository at this point in the history
  • Loading branch information
0xRy4n committed Nov 2, 2023
1 parent ebf4c12 commit 0043956
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions intercom_python_sdk/apis/data_events/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# External
from uplink import (
get, post,
returns,
returns, json,
response_handler,
Body, Query
)
Expand Down Expand Up @@ -76,8 +76,8 @@ def list_all(self,
raise ValueError("At least one of `user_id`, `intercom_user_id`, or `email` must be provided.")

return self.__list_all(user_id=user_id, intercom_user_id=intercom_user_id, email=email, summary=summary)

@returns(DataEventSchema()) # type: ignore
@json() # type: ignore
@post("")
def submit(self, event: Body(type=DataEventSchema)): # type: ignore
""" Submit a new data event.
Expand Down

0 comments on commit 0043956

Please sign in to comment.