@innovatespace/ig-business
Version:
Instagram Business SDK Wrapper for Node.js
11 lines • 694 B
TypeScript
import { CodeExchangeResponse, RedirectParam, TokenExchangeResponse } from '../../type';
export declare class OAuthInstagram {
private readonly clientId;
private readonly clientSecret;
constructor(clientId: string, clientSecret: string);
static getRedirectUri({ scope, clientId, redirectUri, force_reauth, state, }: RedirectParam): string;
getShortLivedInstagramAccessToken(redirectUri: string, code: string): Promise<CodeExchangeResponse>;
getLongLivedInstagramAccessToken(shortLivedAccessToken: string): Promise<TokenExchangeResponse>;
refreshInstagramAccessToken(longLivedAccessToken: string): Promise<TokenExchangeResponse>;
}
//# sourceMappingURL=index.d.ts.map