UNPKG

@termii/node

Version:

Nodejs SDK wrapper for Termii API written with Typescript support

9 lines (8 loc) 519 B
import { TermiiCore } from '../../../api'; import { ICreateContact, ICreateContactResponse, IDeleteContactResponse, IFetchContactsResponse } from '../../../interfaces'; export declare class Contact extends TermiiCore { constructor(apiKey: string); fetchContacts(phonebook_id: string, page?: number): Promise<IFetchContactsResponse>; createContact(phonebook_id: string, data: ICreateContact): Promise<ICreateContactResponse>; deleteContact(contact_id: string): Promise<IDeleteContactResponse>; }