View Source PexelsEx (PexelsEx v0.1.0)

Written by B.j Mayor ikwecheghu@gmail.com PexelsEx is an Elixir SDK for interacting with the Pexels API.

This module provides functions to search and retrieve photos, videos, and collections from Pexels.

Summary

Functions

Retrieves curated photos.

Retrieves featured collections.

Retrieves popular videos.

Searches for photos based on a query string.

Searches for videos based on a query string.

Functions

Link to this function

curated_photos(options \\ [])

View Source

Retrieves curated photos.

Parameters

  • options: Optional parameters for the API request.

Returns

  • {:ok, photos} on success.
  • {:error, reason} on failure.
Link to this function

search_photos(query, options \\ [])

View Source

Searches for photos based on a query string.

Parameters

  • query: The search term for photos.
  • options: Optional parameters for the API request.

Returns

  • {:ok, photos} on success.
  • {:error, reason} on failure.
Link to this function

search_videos(query, options \\ [])

View Source

Searches for videos based on a query string.

Parameters

  • query: The search term for videos.
  • options: Optional parameters for the API request.

Returns

  • {:ok, videos} on success.
  • {:error, reason} on failure.