Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to use Instagram relationships method to unfollow in Apigee Console

Not applicable

HOW TO USE INSTAGRAM RELATIONSHIPS METHOD TO UNFOLLOW IN APIGEE CONSOLE

i know this is a funny question but please help this kid understanding.

i've been surfing all over the internet and still cant find a guide or a solution for my problem

2275-capture.png

i cant understand what to fill in all of that

where should i put the scope action and etc

Solved Solved
2 7 1,835
1 ACCEPTED SOLUTION

Dear @OjimDian ,

Welcome to Apigee Community 🙂 Please find steps below to use instagram relationship api in Apigee Console.

Step 1 :

Navigate to https://apigee.com/console/instagram

Step 2: Login to your Instagram account using OAuth option below Authentication select box

2279-screen-shot-2016-03-30-at-40950-pm.png

Step 3: Once you are logged in , you are ready to make API calls to retrieve information from your Instagram account & interact with your account using APIs exposed by Instagram & Apigee Console.

2280-screen-shot-2016-03-30-at-41721-pm.png

Step 4: For Example, I would like to retrieve my profile information. I will use first API call, i.e Users -> GET -> users/{user-id} . Click on First link on Select an API Method.

2281-screen-shot-2016-03-30-at-41845-pm.png

Step 5 : To make an API Call, you need to send user-id in the path, click on template to input user id that will be replace in API call , https://api.instagram.com/v1/users/{user-id} . To retrieve your account use your user-id or self. Let's fill the template user-id with 'self' & hit send to see API response.

2282-screen-shot-2016-03-30-at-42127-pm.png

I did successfully call the Instagram API & can see my profile information in response.

Step 6: Time to play with relationships API, If i would like to get my followers, I will make below API call.

2283-screen-shot-2016-03-30-at-42428-pm.png

Step 7 : Coming to your query, How to update relationship using API, POST https://api.instagram.com/v1/users/{user-id}/relationship

Let's say i would like to unfollow "indiancricketteam", i will use above api to do same. How ? Please find steps below.

Step 7.1 : Update {user-id} using template variables, Since i would like to unfollow "indiancricketteam" , i will fill template {user-id} value to "indiancricketteam" id which is 2091666763

Step 7.2 : I need to update action that I would like to do, in my case it is unfollow. Navigate to body & then update action value to "unfollow"

Step 7.3 : Hit send button to unfollow,

Step 7.4 : Verify using get making call to self follows API,

As you can see, I have successfully unfollowed "indiancricketteam" using Instagram APIs & Apigee Console.

Keep us posted if you have any queries.

View solution in original post

7 REPLIES 7

Not applicable

help please 😞

Not applicable

Not applicable

Dear @OjimDian ,

Welcome to Apigee Community 🙂 Please find steps below to use instagram relationship api in Apigee Console.

Step 1 :

Navigate to https://apigee.com/console/instagram

Step 2: Login to your Instagram account using OAuth option below Authentication select box

2279-screen-shot-2016-03-30-at-40950-pm.png

Step 3: Once you are logged in , you are ready to make API calls to retrieve information from your Instagram account & interact with your account using APIs exposed by Instagram & Apigee Console.

2280-screen-shot-2016-03-30-at-41721-pm.png

Step 4: For Example, I would like to retrieve my profile information. I will use first API call, i.e Users -> GET -> users/{user-id} . Click on First link on Select an API Method.

2281-screen-shot-2016-03-30-at-41845-pm.png

Step 5 : To make an API Call, you need to send user-id in the path, click on template to input user id that will be replace in API call , https://api.instagram.com/v1/users/{user-id} . To retrieve your account use your user-id or self. Let's fill the template user-id with 'self' & hit send to see API response.

2282-screen-shot-2016-03-30-at-42127-pm.png

I did successfully call the Instagram API & can see my profile information in response.

Step 6: Time to play with relationships API, If i would like to get my followers, I will make below API call.

2283-screen-shot-2016-03-30-at-42428-pm.png

Step 7 : Coming to your query, How to update relationship using API, POST https://api.instagram.com/v1/users/{user-id}/relationship

Let's say i would like to unfollow "indiancricketteam", i will use above api to do same. How ? Please find steps below.

Step 7.1 : Update {user-id} using template variables, Since i would like to unfollow "indiancricketteam" , i will fill template {user-id} value to "indiancricketteam" id which is 2091666763

Step 7.2 : I need to update action that I would like to do, in my case it is unfollow. Navigate to body & then update action value to "unfollow"

Step 7.3 : Hit send button to unfollow,

Step 7.4 : Verify using get making call to self follows API,

As you can see, I have successfully unfollowed "indiancricketteam" using Instagram APIs & Apigee Console.

Keep us posted if you have any queries.

@Anil Sagar thanks i forgot to delete the {} in the action so i was sending action={unfollow} instead of action=unfollow thank you sir you are very helpfull

@OjimDian , Any time 🙂

@Anil Sagar

can i have your contact facebook or email maybe for personal chat