Reputation: 177
I recently created a wallpaper app. I want to ask, do Pixabay allow to show their photos as wallpaper in a Wallpaper Application. Isn't there any policy restrictions for wallpaper apps in Pixabay.
Website: pixabay.com
Upvotes: 1
Views: 641
Reputation: 1
Yes you can. The PHP library I tested is from Zoonman PHP API Code on GitHub
Then obtain a Developer Account on Pixabay Developer API
There after install the library on your server and obtaining images URLs etc is just simple like this code asking for images on 'nature'. Change the query keyword and you will get images for that.
<?php
require_once 'vendor/autoload.php';
$pixabayClient = new \Pixabay\PixabayClient([
'key' => 'yourPixabayKey'
]);
// test it
$results = $pixabayClient->get(['q' => 'nature'], true);
// show the results
var_dump($results);
Use data fields returned by the API to create your wallpaper App gallery.
Upvotes: 0