Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1030175 // pixabaySearch

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4192L/28K).

static L<Map> pixabaySearch(S q, O... _) {
  sleepSeconds(1.0); // safety delay
  ret (L) jsonDecodeMap(loadPageWithParams("https://pixabay.com/api/",
    paramsPlus_noOverwrite(_, key := pixabayApiKey_mandatory(), +q))).get("hits");
}

download  show line numbers  debug dex  old transpilations   

Travelled to 5 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030175
Snippet name: pixabaySearch
Eternal ID of this version: #1030175/5
Text MD5: 3046ccb9031584259dad72323ed1dc68
Transpilation MD5: 741adbc9ea1dc91019ad6ea11bb64928
Author: stefan
Category: javax / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-12 10:13:08
Source code size: 239 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 206 / 298
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)