View Source Excalt.Request.UrlHelper (Excalt v0.1.1)

Helper functions to create the urls used for the caldav requests.

Link to this section Summary

Functions

Builds the url for accessing the calendar of a user.

Builds the url for accessing the calendar of a user.

Link to this section Functions

Link to this function

build_url(server_url, username)

View Source
@spec build_url(server_url :: String.t(), username :: String.t()) :: String.t()

Builds the url for accessing the calendar of a user.

Link to this function

build_url(server_url, username, calendar_name)

View Source
@spec build_url(
  server_url :: String.t(),
  username :: String.t(),
  calendar_name :: String.t()
) ::
  String.t()

Builds the url for accessing the calendar of a user.

examples

Examples

iex> Excalt.Request.UrlHelper.build_url("http://mycaldavserver.org", "myuser", "mycalendar")
"http://mycaldavserver.org/myuser/mycalendar"