EventApiClient
Contains all the endpoints needed to manage events.
Constructors
new EventApiClient()
new EventApiClient():
EventApiClient
Returns
Methods
changeEventCover()
static
changeEventCover(id
,data
,config
?):Promise
<SCEventType
>
This endpoint changes the event avatar
Parameters
Parameter | Type | Description |
---|---|---|
id | string | number | |
data | FormData | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCEventType
>
Source
createEvent()
static
createEvent(data
,config
?):Promise
<SCEventType
>
This endpoint creates an event.
Parameters
Parameter | Type | Description |
---|---|---|
data | EventCreateParams | FormData | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCEventType
>
Source
deleteEvent()
static
deleteEvent(id
,config
?):Promise
<any
>
This endpoint deletes an event.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | number | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<any
>
Source
getEventFeed()
static
getEventFeed(id
,params
?,config
?):Promise
<any
>
This endpoint performs events search
Parameters
Parameter | Type | Description |
---|---|---|
id | string | number | |
params ? | EventFeedParams | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<any
>
Source
getEventInvitedUsers()
static
getEventInvitedUsers(id
,params
?,config
?):Promise
<SCPaginatedResponse
<SCUserType
>>
This endpoint returns a list of invited users.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | number | |
params ? | BaseGetParams | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCUserType
>>
Source
getEventMembers()
static
getEventMembers(id
,params
?,config
?):Promise
<SCPaginatedResponse
<SCUserType
>>
This endpoint returns all subscribers of a specific event.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | number | |
params ? | BaseGetParams | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCUserType
>>
Source
getEventRelated()
static
getEventRelated(id
,params
?,config
?):Promise
<SCPaginatedResponse
<SCEventType
>>
This endpoint returns all events related of a specific event.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | number | |
params ? | EventRelatedParams | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCEventType
>>
Source
getEventSubscriptionStatus()
static
getEventSubscriptionStatus(id
,config
?):Promise
<any
>
This endpoint retrieves the event subscription status.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | number | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<any
>
Source
getEventSuggestedUsers()
static
getEventSuggestedUsers(id
,search
,config
?):Promise
<SCPaginatedResponse
<SCUserType
>>
This endpoint returns a list of suggested users to invite to the event.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | number | |
search | string | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCUserType
>>
Source
getEventWaitingApprovalSubscribers()
static
getEventWaitingApprovalSubscribers(id
,params
?,config
?):Promise
<SCPaginatedResponse
<SCUserType
>>
This endpoint returns all waiting approval subscribers
Parameters
Parameter | Type | Description |
---|---|---|
id | string | number | |
params ? | BaseGetParams | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCUserType
>>
Source
getEventsSuggestedUsers()
static
getEventsSuggestedUsers(search
,config
?):Promise
<SCPaginatedResponse
<SCUserType
>>
This endpoint returns a list of suggested users to invite to the events.
Parameters
Parameter | Type | Description |
---|---|---|
search | string | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCUserType
>>
Source
getSpecificEventInfo()
static
getSpecificEventInfo(id
,config
?):Promise
<SCEventType
>
This endpoint retrieves a specific event.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | number | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCEventType
>
Source
getUserCreatedEvents()
static
getUserCreatedEvents(params
?,config
?):Promise
<SCPaginatedResponse
<SCEventType
>>
This endpoint returns all events cretaed by a specific event.
Parameters
Parameter | Type | Description |
---|---|---|
params ? | EventRelatedParams | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCEventType
>>
Source
getUserEvents()
static
getUserEvents(params
?,config
?):Promise
<SCPaginatedResponse
<SCEventType
>>
This endpoint retrieves all the events of the logged-in user.
Parameters
Parameter | Type | Description |
---|---|---|
params ? | EventUserParams | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCEventType
>>
Source
getUserSubscribedEvents()
static
getUserSubscribedEvents(id
,params
?,config
?):Promise
<SCPaginatedResponse
<SCEventType
>>
This endpoint retrieves a specific user events.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | number | |
params ? | BaseSearchParams | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCEventType
>>
Source
getUsersGoingToEvent()
static
getUsersGoingToEvent(id
,params
?,config
?):Promise
<SCPaginatedResponse
<SCUserType
>>
This endpoint returns a list of users attending the event.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | number | |
params ? | BaseGetParams | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCUserType
>>
Source
getUsersNotGoingToEvent()
static
getUsersNotGoingToEvent(id
,params
?,config
?):Promise
<SCPaginatedResponse
<SCUserType
>>
This endpoint returns a list of users not attending the event.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | number | |
params ? | BaseGetParams | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCUserType
>>