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

Deprecated API warning - /users/{id}/followings/{id} #56

Open
mgoodfellow opened this issue May 20, 2021 · 3 comments
Open

Deprecated API warning - /users/{id}/followings/{id} #56

mgoodfellow opened this issue May 20, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@mgoodfellow
Copy link

Title: Deprecated API warning - /users/{id}/followings/{id}

Endpoint(s):

  • GET /users/{id}/followings/{id}

https://developers.soundcloud.com/docs/api/explorer/open-api#/users/get_users__user_id__followings__following_id_

Scope(s):

  • None (application is not using authentication i.e., implicit flow)

I noticed that this endpoint is marked as deprecated in the SoundCloud API docs above. This endpoint is useful to perform a quick check to see if a user is already following another user. This is useful for providing a visual indication on 3rd party integrations if a user follows another user.

If this endpoint is removed, then this check can only be performed by paging through all of a users followings, and searching to see if the other user id is present in the collection. This collection could be up to 2000 users, and therefore require 10 API calls in order to perform this check.

As it stands, a very lightweight check can be done as this method actually issues a HTTP 303 (Redirect Method) to the /users/{id} endpoint meaning no data even needs to be requested from the API.

Can I request that this method is not deprecated?

@dasha-kobzeva
Copy link
Contributor

Hi @mgoodfellow,

I don't see much usage of this endpoint in our metrics.
Could you please provide some data on how often your application calls this endpoint?

@mgoodfellow
Copy link
Author

Hi @dasha-kobzeva

Apologies for the slow response - checking the metrics we call this endpoint about 500 times an hour.

@obrhoff
Copy link

obrhoff commented Jun 3, 2021

Related to #15. Paging through, just to figure out if something is liked or not liked is way to expensive.

@rahul-sc rahul-sc added the enhancement New feature or request label Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants