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

Revised Giphy API request to use module and allow user to change rating ... #46

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

coldfumonkeh
Copy link
Contributor

Revised Giphy API request to use module and allow user to change rating flag when making the request - defaults to pg-13 rating.

When a user requests a giphy image the default rating will be pg-13:

giphy:archer

The rating can be manually overridden by providing an optional rating flag like so:

giphy:archer -r
giphy:archer -y

Available flags are:

  • -y
  • -g
  • -pg
  • -pg-13
  • -r

The request method was also changed in this revision to use the apigiphy Node module to streamline the code.

…ng flag when mkaing the request - defaults to pg-13 rating
@atuttle
Copy link
Owner

atuttle commented Mar 20, 2015

Gotta add your new dependency to package.json

@coldfumonkeh
Copy link
Contributor Author

Thanks, forgot that rather important detail given the new branch changes. Just added in b119d29

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.

2 participants