Pexels.search_photos
You're seeing just the function
search_photos
, go back to Pexels module for more information.
This endpoint enables you to search Pexels for any topic that you would like.
For example your query could be something broad like Nature, Tigers, People.
Or it could be something specific like Group of people working.
Examples
iex> client = Pexels.client()
iex> {:ok, response = %Pexels.Client.Photo.PhotosResponse{}} = Pexels.search_photos(client, %{query: "cat", per_page: 10, page: 1})
iex> response.photos |> Enum.count
10