-
Notifications
You must be signed in to change notification settings - Fork 20
feat: sns #147
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
feat: sns #147
Changes from all commits
72622a8
d15f0e5
03cc7cb
ec9c26d
9ffe4d4
6d9eef6
ae6a19b
7e02134
803c147
03e0be4
f69236b
bf5240c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -496,6 +496,16 @@ async def check_sqs( | |
data = {"sqs_key": sqs_key, "sqs_secret": sqs_secret, "sqs_url": sqs_url} | ||
return await self.post("check_sqs", data=data) | ||
|
||
async def check_sns( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [flake8] <301> reported by reviewdog 🐶 |
||
self, sns_key: str = None, sns_secret: str = None, sns_topic_arn: str = None | ||
) -> StreamResponse: | ||
data = { | ||
"sns_key": sns_key, | ||
"sns_secret": sns_secret, | ||
"sns_topic_arn": sns_topic_arn, | ||
} | ||
return await self.post("check_sns", data=data) | ||
|
||
async def set_guest_user(self, guest_user: Dict) -> StreamResponse: | ||
return await self.post("guest", data=dict(user=guest_user)) | ||
|
||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -480,6 +480,16 @@ def check_sqs( | |||||||
data = {"sqs_key": sqs_key, "sqs_secret": sqs_secret, "sqs_url": sqs_url} | ||||||||
return self.post("check_sqs", data=data) | ||||||||
|
||||||||
def check_sns( | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [black] reported by reviewdog 🐶
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [flake8] <301> reported by reviewdog 🐶 |
||||||||
self, sns_key: str = None, sns_secret: str = None, sns_topic_arn: str = None | ||||||||
) -> StreamResponse: | ||||||||
data = { | ||||||||
"sns_key": sns_key, | ||||||||
"sns_secret": sns_secret, | ||||||||
"sns_topic_arn": sns_topic_arn, | ||||||||
} | ||||||||
return self.post("check_sns", data=data) | ||||||||
|
||||||||
def get_permission(self, id: str) -> StreamResponse: | ||||||||
return self.get(f"permissions/{id}") | ||||||||
|
||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[black] reported by reviewdog 🐶