CategoryApiClientInterface
Methods
checkCategoryIsFollowed()
checkCategoryIsFollowed(
id
,config
?):Promise
<SCCategoryFollowedStatusType
>
Parameters
Parameter | Type |
---|---|
id | string | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCCategoryFollowedStatusType
>
Source
createCategory()
createCategory(
data
,config
?):Promise
<SCCategoryType
>
Parameters
Parameter | Type |
---|---|
data | SCCategoryType |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCCategoryType
>
Source
deleteASpecificCategory()
deleteASpecificCategory(
id
,config
?):Promise
<any
>
Parameters
Parameter | Type |
---|---|
id | string | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<any
>
Source
followCategory()
followCategory(
id
,config
?):Promise
<any
>
Parameters
Parameter | Type |
---|---|
id | string | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<any
>
Source
getAllCategories()
getAllCategories(
params
?,config
?):Promise
<SCPaginatedResponse
<SCCategoryType
>>
Parameters
Parameter | Type |
---|---|
params ? | CategoryParams |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCCategoryType
>>
Source
getCategoryAudience()
getCategoryAudience(
id
,config
?):Promise
<SCCategoryAudienceType
>
Parameters
Parameter | Type |
---|---|
id | string | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCCategoryAudienceType
>
Source
getCategoryFeed()
getCategoryFeed(
id
,config
?):Promise
<SCPaginatedResponse
<SCFeedUnitType
>>
Parameters
Parameter | Type |
---|---|
id | string | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCFeedUnitType
>>
Source
getCategoryFollowers()
getCategoryFollowers(
id
,config
?):Promise
<SCPaginatedResponse
<SCUserType
>>
Parameters
Parameter | Type |
---|---|
id | string | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCUserType
>>
Source
getCategoryTrendingFeed()
getCategoryTrendingFeed(
id
,params
?,config
?):Promise
<SCPaginatedResponse
<SCFeedUnitType
>>
Parameters
Parameter | Type |
---|---|
id | string | number |
params ? | BaseGetParams |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCFeedUnitType
>>
Source
getCategoryTrendingFollowers()
getCategoryTrendingFollowers(
id
,params
?,config
?):Promise
<SCPaginatedResponse
<SCUserType
>>
Parameters
Parameter | Type |
---|---|
id | string | number |
params ? | BaseGetParams |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCUserType
>>
Source
getFollowedCategories()
getFollowedCategories(
params
?,config
?):Promise
<SCPaginatedResponse
<SCCategoryType
>>
Parameters
Parameter | Type |
---|---|
params ? | CategoryParams |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCCategoryType
>>
Source
getPopularCategories()
getPopularCategories(
params
?,config
?):Promise
<SCPaginatedResponse
<SCCategoryType
>>
Parameters
Parameter | Type |
---|---|
params ? | BaseGetParams |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCCategoryType
>>
Source
getSpecificCategory()
getSpecificCategory(
id
,config
?):Promise
<SCCategoryType
>
Parameters
Parameter | Type |
---|---|
id | string | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCCategoryType
>
Source
patchASpecificCategory()
patchASpecificCategory(
id
,data
,config
?):Promise
<SCCategoryType
>
Parameters
Parameter | Type |
---|---|
id | string | number |
data | SCCategoryType |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCCategoryType
>
Source
searchCategory()
searchCategory(
params
?,config
?):Promise
<SCPaginatedResponse
<SCCategoryType
>>
Parameters
Parameter | Type |
---|---|
params ? | CategoryParams |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCCategoryType
>>
Source
updateASpecificCategory()
updateASpecificCategory(
id
,data
,config
?):Promise
<SCCategoryType
>
Parameters
Parameter | Type |
---|---|
id | string | number |
data | SCCategoryType |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCCategoryType
>