@trendmoon/api-client
Version:
Official TypeScript client for Trendmoon API
66 lines • 2.02 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SocialService = void 0;
class SocialService {
constructor(apiClient) {
this.apiClient = apiClient;
}
/**
* Retrieves social trend data for a coin.
* @param params - Parameters for getting social trend.
*/
async getSocialTrend(params) {
return this.apiClient.getSocialTrend(params);
}
/**
* Retrieves keyword trend data.
* @param params - Parameters for getting keyword trend.
*/
async getKeywordTrend(params) {
return this.apiClient.getKeywordTrend(params);
}
/**
* Retrieves a project summary.
* @param params - Parameters for getting project summary.
*/
async getProjectSummary(params) {
return this.apiClient.getProjectSummary(params);
}
/**
* Retrieves posts related to a specific topic.
* @param params - Parameters for getting topic posts.
*/
async getTopicPosts(params) {
return this.apiClient.getTopicPosts(params);
}
/**
* Retrieves news related to a specific topic.
* @param params - Parameters for getting topic news.
*/
async getTopicNews(params) {
return this.apiClient.getTopicNews(params);
}
/**
* Searches social posts.
* @param params - Parameters for searching social posts.
*/
async searchSocialPosts(params) {
return this.apiClient.searchSocialPosts(params);
}
/**
* Retrieves social trends for multiple coins.
* @param params - Parameters for getting social trends.
*/
async getSocialTrends(params) {
return this.apiClient.getSocialTrends(params);
}
/**
* Retrieves a summary for a specific topic.
* @param params - Parameters for getting topic summary.
*/
async getTopicSummary(params) {
return this.apiClient.getTopicSummary(params);
}
}
exports.SocialService = SocialService;
//# sourceMappingURL=SocialService.js.map