Packages

Elixir wrapper for the Meetup.com public API.

Retired package: This library no longer conforms to the Meetup API. I am looking for a new maintainer if you'd like to take it over

Current section

Files

Jump to
meetup lib v3 boards.ex
Raw

lib/v3/boards.ex

defmodule Meetup.V3.Boards do
@moduledoc """
Handles endpoints related to meetup discussion boards.
"""
@doc """
Listings of Group discussion boards.
The :urlname path element may be any valid group urlname or domain name.
"""
@spec index(String.t()) :: tuple()
def index(urlname) do
path = "#{urlname}/boards"
Meetup.get(path, %{})
end
@doc """
Listings of group discussions.
For available params, see:
https://www.meetup.com/meetup_api/docs/:urlname/boards/:bid/discussions/
"""
@spec discussions(String.t(), integer()) :: tuple()
def discussions(urlname, bid) do
path = "#{urlname}/boards/#{bid}/discussions"
Meetup.get(path, %{})
end
@doc """
Listing Group discussion posts.
"""
@spec discussions(String.t(), integer(), integer()) :: tuple()
def discussions(urlname, bid, did) do
path = "#{urlname}/boards/#{bid}/discussions/#{did}"
Meetup.get(path, %{})
end
end