Skip to main content
Glama
canny.d.ts2.87 kB
import { CannyApiResponse, CannyPost, CannyBoard, CannyCategory, CannyComment, CannyUser, CannyTag } from './types.js'; /** * Canny API Client * Implements Customer-Centric approach by providing reliable API access * Following Efficiency principle by implementing proper error handling and retries */ export declare class CannyClient { private apiKey; private baseUrl; private client; private rateLimitTracker; constructor(apiKey: string, baseUrl?: string); private checkRateLimit; private makeRequest; /** * Get all boards accessible to the API key */ getBoards(): Promise<CannyApiResponse<CannyBoard[]>>; /** * Get posts from a specific board */ getPosts(boardId: string, options?: { limit?: number; skip?: number; status?: string; search?: string; sort?: 'newest' | 'oldest' | 'relevance' | 'trending'; }): Promise<CannyApiResponse<{ posts: CannyPost[]; hasMore: boolean; }>>; /** * Get a specific post by ID */ getPost(postId: string): Promise<CannyApiResponse<CannyPost>>; /** * Create a new post */ createPost(data: { authorID: string; boardID: string; title: string; details?: string; categoryID?: string; customFields?: Record<string, any>; }): Promise<CannyApiResponse<CannyPost>>; /** * Update an existing post */ updatePost(postId: string, data: { title?: string; details?: string; categoryID?: string; customFields?: Record<string, any>; status?: string; }): Promise<CannyApiResponse<CannyPost>>; /** * Search posts across all accessible boards */ searchPosts(query: string, options?: { boardIDs?: string[]; limit?: number; status?: string; }): Promise<CannyApiResponse<{ posts: CannyPost[]; hasMore: boolean; }>>; /** * Get categories from a specific board */ getCategories(boardId: string): Promise<CannyApiResponse<CannyCategory[]>>; /** * Get comments from a specific post */ getComments(postId: string, options?: { limit?: number; skip?: number; }): Promise<CannyApiResponse<{ comments: CannyComment[]; hasMore: boolean; }>>; /** * Get users from your Canny instance */ getUsers(options?: { limit?: number; skip?: number; search?: string; }): Promise<CannyApiResponse<{ users: CannyUser[]; hasMore: boolean; }>>; /** * Get tags from boards */ getTags(options?: { boardId?: string; limit?: number; }): Promise<CannyApiResponse<{ tags: CannyTag[]; hasMore?: boolean; }>>; } //# sourceMappingURL=canny.d.ts.map

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/itsocialist/canny-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server