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
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)
Specs
find_webinar_key(Goto.Token.t(), String.t()) :: String.t()
Finds the webinar key by the subject name
Specs
get_all_webinars(Goto.Token.t(), [Goto.Schema.Webinar.t()], get_webinars_opts()) :: [Goto.Schema.Webinar.t()]
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")