Type: | Package |
Title: | Access 'Meetup' API |
Version: | 0.1.0 |
Author: | Zac Davies <zaclavis@gmail.com> |
Maintainer: | Zac Davies <zaclavis@gmail.com> |
Description: | Allows management of 'Meetup' groups via the <https:www.meetup.com/meetup_api/>. Provided are a set of functions that enable fetching information of joined meetups, attendance, and members. This package requires the use of an API key. |
License: | GPL-3 |
URL: | https://github.com/zacdav/meetupapi |
BugReports: | https://github.com/zacdav/meetupapi/issues |
Imports: | httr, purrr, dplyr, magrittr |
Encoding: | UTF-8 |
LazyData: | true |
RoxygenNote: | 6.0.1 |
NeedsCompilation: | no |
Packaged: | 2018-02-19 23:08:04 UTC; zdavies |
Repository: | CRAN |
Date/Publication: | 2018-02-20 10:04:28 UTC |
Get attendance for a past event
Description
Get attendance for a past event
Usage
get_event_attendance(urlname, event_id, key, fields = c("status", "member",
"rsvp.response"), ...)
Arguments
urlname |
string, URL name for the meetup. e.g 'R-Users-Sydney'. |
event_id |
string, event id for the meetup event. |
key |
an API key from https://www.meetup.com/meetup_api/. |
fields |
a charcter vector of the fields to return. |
... |
a named list where each element is a character vector for additional parameters e.g. 'list("omit" = c("member.photo", "member.event_context")'. |
Value
data.frame of attendance for a past meetup event.
Examples
## Not run:
get_event_attendance("R-Users-Sydney", "your_event_id", "your_api_key")
## End(Not run)
Get RSVPs for a meetup event
Description
Can be used after calling the 'get_joined_meetups()' function and getting a urlname, and calling 'get_meetup_events()' for an event_id
Usage
get_event_rsvps(urlname, event_id, key, fields = c("response", "member"), ...)
Arguments
urlname |
string, URL name for the meetup. e.g 'R-Users-Sydney'. |
event_id |
string, event id for the meetup event. |
key |
an API key from https://www.meetup.com/meetup_api/. |
fields |
a charcter vector of the fields to return. |
... |
a named list where each element is a character vector for additional parameters e.g. 'list("omit" = c("member.photo", "member.event_context")'. |
Value
data.frame of event RSVPs.
Examples
## Not run:
get_event_rsvps("R-Users-Sydney", "your_event_id", "your_api_key")
## End(Not run)
Get Joined Meetups
Description
This request is specific to an API key. Provides urlname used in other functions.
Usage
get_joined_meetups(key, fields = c("id", "name", "urlname", "link"), ...)
Arguments
key |
an API key from https://www.meetup.com/meetup_api/ |
fields |
a charcter vector of the fields to return |
... |
a named list where each element is a character vector for additional parameters e.g. 'list("omit" = c("member.photo", "member.event_context")' |
Value
returns a data.frame of the meetups associated to an API key
Examples
## Not run:
get_joined_meetups("your_api_key")
## End(Not run)
Get Meetup Events
Description
This function retrieves all meetup events for a meetup. This is forced to be ordered in descending order and show both upcoming and past events, therefore 'status' and 'desc' should not be passed as named arguements to the '...' (dots) arguement.
Usage
get_meetup_events(urlname, key, fields = c("status", "id", "name"), ...)
Arguments
urlname |
string, URL name for the meetup. e.g 'R-Users-Sydney' |
key |
an API key from https://www.meetup.com/meetup_api/ |
fields |
a charcter vector of the fields to return |
... |
a named list where each element is a character vector for additional parameters e.g. 'list("omit" = c("member.photo", "member.event_context")' |
Value
data.frame of meetup events for a meetup.
Examples
## Not run:
get_meetup_events("R-Users-Sydney", "your_api_key")
## End(Not run)
Get Meetup Members
Description
Get Meetup Members
Usage
get_meetup_members(urlname, key, fields = c("id", "name"), ...)
Arguments
urlname |
string, URL name for the meetup. e.g 'R-Users-Sydney' |
key |
an API key from https://www.meetup.com/meetup_api/ |
fields |
a charcter vector of the fields to return |
... |
a named list where each element is a character vector for additional parameters e.g. 'list("omit" = c("member.photo", "member.event_context")' |
Value
a data.frame of members in a meetup.
Examples
## Not run:
get_meetup_members("R-Users-Sydney", "your_api_key")
## End(Not run)
Mark Event Attendance
Description
Mark Event Attendance
Usage
mark_event_attendance(urlname, event_id, member_ids, member_status, key)
Arguments
urlname |
string, URL name for the meetup. e.g 'R-Users-Sydney' |
event_id |
string, event id for the meetup event. |
member_ids |
vector of member id strings to mark attendance for. |
member_status |
vector string for member status, positions match those in member_id's. |
key |
an API key from https://www.meetup.com/meetup_api/. |
Value
the POST request object.
Examples
## Not run:
mark_event_attendance("R-Users-Sydney", "your_event_id",
"my_member_id", "attended",
"your_api_key")
## End(Not run)