No release in over 3 years
Low commit activity in last 3 years
Instagram Basic Display API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.7, >= 2.7.5
~> 3.9, >= 3.9.0

Runtime

~> 0.17.3
 Project Readme

Instagram Basic Display API Gem

A Ruby wrapper for the Instagram Basic Display API

Installation

gem install instagram_basic_display_api

Instagram Basic Display API

Read the documentation.

Sample Application

# Initialize the client with your access token
client = InstagramBasicDisplayAPI.client(access_token: access_token)

# Fetch the user account
user = client.user
puts "#{user.username}"

# Get your recent media items
for media_item in client.user_recent_media
  puts "#{media_item.thumbnail_url}"
end

# Find extended information about a specific media item
media_item = client.media_item(media_id)
puts "#{media_item.media_url}"

# Fetch the children of a carousel media item
for media_item in client.media_children(media_id)
  puts "#{media_item.media_type}"
end