From 09fdea88ead5b7b7a584a5e7f0d501cd18eaf176 Mon Sep 17 00:00:00 2001 From: Gimenz Date: Tue, 27 Feb 2024 02:32:24 +0700 Subject: [PATCH] =?UTF-8?q?forgotten=20=F0=9F=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 086bc24..12e8655 100644 --- a/src/index.ts +++ b/src/index.ts @@ -93,7 +93,7 @@ export class igApi { public searchFollower = async (userId: userId, seachTerm: seachTerm): Promise => { const res = await this.FetchIGAPI( - config.instagram_base_url, + config.instagram_api_v1, `/friendships/${userId}/followers/?count=12&query=${seachTerm}&search_surface=follow_list_page`, config.iPhone, ); @@ -102,8 +102,8 @@ export class igApi { public searchFollowing = async (userId: userId, seachTerm: seachTerm): Promise => { const res = await this.FetchIGAPI( - config.instagram_base_url, - `/api/v1/friendships/${userId}/following/?query=${seachTerm}`, + config.instagram_api_v1, + `/friendships/${userId}/following/?query=${seachTerm}`, config.iPhone, ); return res?.data || res