Skip to content

add new function to get topic without slug #100

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jslarraz
Copy link

Summary of changes

Existent client.topic() function gets a topic providing the slug and the topic_id as arguments. This PR proposes a new function 'topic_by_id' to get the topic only by providing the topic_id.

The reason to create a new function rather than updating the existing 'topic()' is to guarantee backwards compatibility.

Checklist

  • Changes represent a discrete update
  • Commit messages are meaningful and descriptive
  • Changeset does not include any extraneous changes unrelated to the discrete change

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

Successfully merging this pull request may close these issues.

1 participant