Goto.Webinars (Peacemaker v3.3.5-rc.7) View Source

Interfaces with Goto.Webinar's API.

Documentation for GotoWebinar can be found here

Link to this section Summary

Functions

Filters all registrants from GotoWebinar by the given email in the Token's payload

Finds the webinar key by the subject name

Queries GotoWebinar for all webinars under the organizer's account.

Link to this section Types

Specs

error() :: {:error, String.t()}

Specs

get_webinars_opts() :: [page: integer(), size: pos_integer()]

Specs

webinar_user() :: map() | nil

Link to this section Functions

Link to this function

find_user_email_in_webinar(token, webinar)

View Source

Specs

find_user_email_in_webinar(Goto.Token.t(), %Peacemaker.Goto.Webinar{
  __meta__: term(),
  intensive: term(),
  subject: term(),
  webinar_key: term()
}) ::
  {webinar_user(),
   %Peacemaker.Goto.Webinar{
     __meta__: term(),
     intensive: term(),
     subject: term(),
     webinar_key: term()
   }}

Filters all registrants from GotoWebinar by the given email in the Token's payload

Example Usage:

  Goto.Token.build()
  |> Goto.Token.set_wealthfit_credentials()
  |> Goto.Token.set_registrant(Peacemaker.Accounts.find_one(email: "kawikak@wealthfit.com"))
  |> Goto.Webinars.find_user_email_in_webinar(webinar)
Link to this function

find_webinar_key(token, subject)

View Source

Specs

find_webinar_key(Goto.Token.t(), String.t()) :: String.t()

Finds the webinar key by the subject name

Link to this function

get_all_webinars(token, acc \\ [], opts \\ [size: 200, page: 0])

View Source

Specs

Queries GotoWebinar for all webinars under the organizer's account.

Example Usage:

Goto.Token.build
|> Goto.Token.set_wealthfit_credentials()
|> Goto.Webinars.find_webinar_key("30-Day Real Estate Investor Startup Intensive")