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
Retrieves curated photos.
Parameters
options
: Optional parameters for the API request.
Returns
{:ok, photos}
on success.{:error, reason}
on failure.
Retrieves featured collections.
Parameters
options
: Optional parameters for the API request.
Returns
{:ok, collections}
on success.{:error, reason}
on failure.
Retrieves popular videos.
Parameters
options
: Optional parameters for the API request.
Returns
{:ok, videos}
on success.{:error, reason}
on failure.
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.
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.