REST API Documentation
/core/clubs
Get list of clubs
For requests using an OAuth Access Token for a particular member, only clubs the authorized user can view will be included and the member_id parameter will be ignored.
Parameters
Name | Type | Description |
---|---|---|
page
|
int | Page number |
perPage
|
int | Number of results per page - defaults to 25 |
member_id
|
int | Member ID to return only clubs the member is allowed to view. |
Exceptions
This endpoint doesn't throw any exceptions.
Response
Name | Type | Description |
---|---|---|
page
|
int | The page number for the results being shown |
perPage
|
int | The number of results that will be on each page |
totalResults
|
int | The total number of results |
totalPages
|
int | The number of pages of results |
results
|
array of club objects | The results for this page |
club
object
Name | Type | Description |
---|---|---|
id
|
int | ID number |
name
|
string | Name |
url
|
string | URL to the club |
type
|
string | Type of club (public, open, closed, private, readonly) |
approved
|
bool | Whether the club is approved or not |
created
|
datetime | Datetime the club was created |
memberCount
|
int | Number of members in the club |
owner
|
member object | Club owner |
photo
|
string|null | URL to the club's profile photo |
paid
|
bool | Whether the club is paid or not |
featured
|
bool | Whether the club is featured or not |
location
|
\IPS\GeoLocation|NULL | Geolocation object representing the club's location, or NULL if no location is available |
about
|
string | Club 'about' information supplied by owner |
lastActivity
|
datetime | Datetime of last activity within the club |
contentCount
|
int | Count of all content items + comments in the club |
coverPhotoUrl
|
string|NULL | URL to the club's cover photo, or NULL if no cover photo is available |
coverOffset
|
string | Cover photo offset |
coverPhotoColor
|
string | Cover photo overlay background color |
members
|
array of member objects | Club members |
leaders
|
array of member objects | Club leaders |
moderators
|
array of member objects | Club moderators |
fieldValues
|
array of field objects | Club's custom field values |
nodes
|
array of model objects | Nodes created for this club |
joiningFee
|
\IPS\nexus\Money|null | Cost to join the club, or null if there is no cost |
renewalTerm
|
\IPS\nexus\Purchase\RenewalTerm|null | Renewal term for the club, or null if there are no renewals |
member
object
Name | Type | Description |
---|---|---|
id
|
int | ID number |
name
|
string | Username |
title
|
string | Member title |
timezone
|
string | Member timezone |
formattedName
|
string | Username with group formatting |
primaryGroup
|
group object | Primary group |
secondaryGroups
|
array of group objects | Secondary groups |
email
|
string | Email address |
joined
|
datetime | Registration date |
registrationIpAddress
|
string | IP address when registered |
warningPoints
|
int | Number of active warning points |
reputationPoints
|
int | Number of reputation points |
photoUrl
|
string | URL to photo (which will be the site's default if they haven't set one) |
photoUrlIsDefault
|
bool | Indicates if the value of photoUrl is the site's default |
coverPhotoUrl
|
string | URL to profile cover photo (will be blank if there isn't one) |
profileUrl
|
string|null | URL to profile |
validating
|
bool | Whether or not the validating flag is set on the member account |
posts
|
int | Number of content item submissions member has made |
lastActivity
|
datetime|null | Last activity date on the site. |
lastVisit
|
datetime|null | Last distinct visit date on the site. |
lastPost
|
datetime|null | Latest content submission date. |
profileViews
|
int | Number of times member's profile has been viewed |
birthday
|
string | Member birthday in MM/DD/YYYY format (or MM/DD format if no year has been supplied). |
customFields
|
array of fieldgroup objects | Custom profile fields. For requests using an OAuth Access Token for a particular member, only fields the authorized user can view will be included |
rank
|
array of rank objects | Rank |
achievements_points
|
int | Points |
allowAdminEmails
|
bool | Whether or not this member wants to receive admin emails |
completed
|
bool | Whether or not the registration is completed |
group
object
Name | Type | Description |
---|---|---|
id
|
int | ID number |
name
|
string | Name |
formattedName
|
string | Name with formatting |