UNPKG

node-instagram

Version:

Instagram api client for node that support promises

22 lines (21 loc) 886 B
import Stream from './stream'; export interface InstagramConfig { clientId: string; clientSecret: string; accessToken?: string; apiVersion?: string; } declare class Instagram { private baseApiUrl; private apiUrl; private config; constructor(config: InstagramConfig); get(endpoint: string, options?: any, callback?: (err?: any, data?: any) => void): Promise<any>; post(endpoint: string, options?: any, callback?: (err?: any, data?: any) => void): Promise<any>; delete(endpoint: string, options?: any, callback?: (err?: any, data?: any) => void): Promise<any>; stream(endpoint: string, options?: any): Stream; getAuthorizationUrl(redirectUri: string, options?: any): string; authorizeUser(code: string, redirectUri: string, callback?: (err?: any, data?: any) => void): Promise<any>; private request; } export default Instagram;