@datocms/cma-client
Version:
JS client for DatoCMS REST Content Management API
36 lines • 1.2 kB
JavaScript
import * as Utils from '@datocms/rest-client-utils';
import BaseResource from '../../BaseResource';
export default class EmojiSuggestions extends BaseResource {
/**
* Retrieve emoji suggestions
*
* Read more: https://www.datocms.com/docs/content-management-api/resources/emoji-suggestions/self
*
* @throws {ApiError}
* @throws {TimeoutError}
*
* @deprecated This API call is to be considered private and might change without notice
*/
find(queryParams) {
return this.rawFind(queryParams).then((body) => Utils.deserializeResponseBody(body));
}
/**
* Retrieve emoji suggestions
*
* Read more: https://www.datocms.com/docs/content-management-api/resources/emoji-suggestions/self
*
* @throws {ApiError}
* @throws {TimeoutError}
*
* @deprecated This API call is to be considered private and might change without notice
*/
rawFind(queryParams) {
return this.client.request({
method: 'GET',
url: '/emoji-suggestions',
queryParams,
});
}
}
EmojiSuggestions.TYPE = 'emoji_suggestions';
//# sourceMappingURL=EmojiSuggestions.js.map