Description Usage Arguments Value Examples
Making the endpoint for searching Noun Project by Term
1 2 | make_term_endpoint(term, limit_to_public_domain = 1, num_of_imgs = 2,
offset = 0)
|
term |
word to use for search |
limit_to_public_domain |
restrict licence, change to 0 for not limit |
num_of_imgs |
the number of images required |
offset |
how many images to ignore, if you want to get different ones |
an url to use with get_nouns_api()
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# assemble the url to get 4 dog icons
url <- nounprojectR::make_term_endpoint("dog", num_of_imgs = 4)
# obtain information from the Noun Project server
res <- get_nouns_api(url)
# extract the JSON file
result <- httr::content(res)
# show the images
get_pngs_and_show(result)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.