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

Create WallhavenCCBridge.php #3990

Closed
wants to merge 1 commit into from

Conversation

CultriX-Github
Copy link

Added a bridge for Wallhaven.cc that uses their official API to fetch wallpapers and allow for the inclusion of an auth token to fetch NSFW-wallpapers if so desired.

Added a bridge for Wallhaven.cc that uses their official API to fetch wallpapers and allow for the inclusion of an auth token to fetch NSFW-wallpapers if so desired.
Copy link

Pull request artifacts

Bridge Context Status
WallhavenCC 1 untitled (pr) ✔️

last change: Monday 2024-02-26 09:24:00

$url = self::URI . '?' . http_build_query(array_filter($params));
$headers = ['X-API-Key' => $this->getInput('apikey')];
$context = stream_context_create(['http' => ['header' => $headers]]);
$json = file_get_contents($url, false, $context);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use getContents

@dvikan
Copy link
Contributor

dvikan commented Mar 31, 2024

let know if still interest

@dvikan dvikan closed this Mar 31, 2024
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