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