Open coldfumonkeh opened 9 years ago
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:
The request method was also changed in this revision to use the apigiphy Node module to streamline the code.
Gotta add your new dependency to package.json
Thanks, forgot that rather important detail given the new branch changes. Just added in b119d29
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:
The rating can be manually overridden by providing an optional rating flag like so:
Available flags are:
The request method was also changed in this revision to use the apigiphy Node module to streamline the code.