Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Add API endpoint for extension to query on usage #5251

Closed
ianb opened this issue Dec 20, 2018 · 1 comment
Closed

Add API endpoint for extension to query on usage #5251

ianb opened this issue Dec 20, 2018 · 1 comment
Assignees

Comments

@ianb
Copy link
Contributor

ianb commented Dec 20, 2018

We want the extension to be able to check if the user needs special notification about the server going away.

We should make an endpoint at /api/check-usage which will return a JSON object with:

{
  "hasIndefiniteShots": true/false,
  "hasExpiringShots": true/false
}

Obviously this endpoint will require authorization.

@jaredhirsch
Copy link
Member

Similar to my comment in #5260, adding an endpoint seems unnecessary. If they have authed before, we'll have a locally-stored device ID. We can just show those users a message with updates about screenshots, whether that's opening a tab to the Screenshots website on upgrade, or showing them a modal next time they try to take a screenshot.

@ianb ianb self-assigned this Jan 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants