Py-StackExchange icon indicating copy to clipboard operation
Py-StackExchange copied to clipboard

Get Related Tags

Open dakshvar22 opened this issue 7 years ago • 1 comments

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?

dakshvar22 avatar Dec 26 '17 11:12 dakshvar22

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 [email protected]:

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 .

lucjon avatar Dec 26 '17 11:12 lucjon