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

[staus pages][m]: on_incident and subscribe_user methods + tests - fixes #1 #2

Merged
merged 3 commits into from Nov 2, 2018

Conversation

zelima
Copy link
Contributor

@zelima zelima commented Oct 31, 2018

  • on_incident will be used from specstore
  • subscribe_user will not be used yet, but still exist. We will subscribe users and created components manually for now

@zelima zelima requested a review from akariv October 31, 2018 10:22
resp = requests.post(
'https://api.statuspage.io/v1/pages/{page_id}/subscribers'.format(page_id=statuspage_id),
headers=statuspage_headers,
data=payload
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think requests has a json parameter exactly to avoid the need to use json.dumps

Copy link

@akariv akariv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@zelima zelima merged commit bcbcae2 into master Nov 2, 2018
@zelima zelima deleted the feature/status-reports branch November 2, 2018 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants