[GiphyBridge] use not rate limited public api key (#2625)

Co-authored-by: User123698745 <usr123698745+git@gmail.com>
This commit is contained in:
User123698745 2022-04-10 11:37:02 +02:00 committed by GitHub
parent 5c08984714
commit 722f9ff0ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -56,12 +56,15 @@ HTML
public function collectData() {
/**
* This uses a public beta key which has severe rate limiting.
* This uses Giphy's own undocumented public prod api key,
* which should not have any rate limiting.
* There is a documented public beta api key (dc6zaTOxFJmzC),
* but it has severe rate limiting.
*
* https://giphy.api-docs.io/1.0/welcome/access-and-api-keys
* https://giphy.api-docs.io/1.0/gifs/search-1
*/
$apiKey = 'dc6zaTOxFJmzC';
$apiKey = 'Gc7131jiJuvI7IdN0HZ1D7nh0ow5BU6g';
$limit = min($this->getInput('n') ?: 10, 50);
$endpoints = array();
if (empty($this->getInput('noGif'))) {