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

Add users/features/share endpoint to Account page #11

Open
not-so-smart opened this issue Oct 27, 2021 · 1 comment
Open

Add users/features/share endpoint to Account page #11

not-so-smart opened this issue Oct 27, 2021 · 1 comment

Comments

@not-so-smart
Copy link
Member

This endpoint can be used to update the share_url and share_qr_code_url properties on your account.
Changes will be reflected in v3/users/me and are also returned in the json response.

Enable

To enable profile sharing:

POST /v3/users/features/share
Host: api.groupme.com:443
X-Access-Token: {{TOKEN}}
{
    "status": "enable"
}

Response:

{
    "share_url": "https://groupme.com/contact/74938777/OtzZPXiX",
    "share_qr_code_url": "https://image.groupme.com/qr/contact/74938777/OtzZPXiX/preview"
}

Calling this endpoint while sharing is already enabled will generate a new share token (OtzZPXiX in this case) hereby invalidating the previous link/qr code.

Disable

To disable profile sharing:

POST /v3/users/features/share
Host: api.groupme.com:443
X-Access-Token: {{TOKEN}}
{
    "status": "disable"
}

Response:

{
    "share_url": null,
    "share_qr_code_url": null
}

Calling this endpoint while sharing is already disabled will do nothing, returning the exact same response again with both fields set to null.

@not-so-smart
Copy link
Member Author

note that this endpoint returns 302 if not called over HTTPS

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

No branches or pull requests

1 participant