lucjon / Py-StackExchange

A Python binding for the StackExchange API
http://stackapps.com/questions/198/py-stackexchange-an-api-wrapper-for-python
BSD 3-Clause "New" or "Revised" License
228 stars 76 forks source link

Get Related Tags #66

Open dakshvar22 opened 6 years ago

dakshvar22 commented 6 years ago

Hi,

I want to call this endpoint using this library - https://api.stackexchange.com/docs/related-tags#filter=default&site=stackoverflow&run=true . I couldn't find any mention of it the code or docs. Is it currently supported?

lucjon commented 6 years ago

It is indeed — you can call this endpoint via the tag_related method on Site objects, for example:

so = stackexchange.Site('stackoverflow.com')
related = so.tag_related('java')
print([t.name for t in related])

I agree the name isn't the best though.

2017-12-26 11:34 GMT+00:00 Daksh Varshneya notifications@github.com:

Hi,

I want to call this endpoint using this library - https://api.stackexchange.com/docs/related-tags#filter= default&site=stackoverflow&run=true . I couldn't find any mention of it the code or docs. Is it currently supported?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lucjon/Py-StackExchange/issues/66, or mute the thread https://github.com/notifications/unsubscribe-auth/AAClWNUoRzjTBCAiYbYh-oZbAgTUXRfIks5tENnbgaJpZM4RMtcB .