Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sixoverground/instagram_basic_display_api
A Ruby wrapper for the Instagram Basic Display API
https://github.com/sixoverground/instagram_basic_display_api
api api-client instagram instagram-api instagram-client instagram-feed instagram-photos instagram-sdk ruby ruby-gem ruby-library ruby-on-rails rubygem rubygems rubyonrails
Last synced: 3 days ago
JSON representation
A Ruby wrapper for the Instagram Basic Display API
- Host: GitHub
- URL: https://github.com/sixoverground/instagram_basic_display_api
- Owner: sixoverground
- Created: 2020-03-05T20:31:01.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-04T06:22:36.000Z (11 months ago)
- Last Synced: 2024-10-29T14:18:34.680Z (3 months ago)
- Topics: api, api-client, instagram, instagram-api, instagram-client, instagram-feed, instagram-photos, instagram-sdk, ruby, ruby-gem, ruby-library, ruby-on-rails, rubygem, rubygems, rubyonrails
- Language: Ruby
- Homepage: https://developers.facebook.com/docs/instagram-basic-display-api
- Size: 23.4 KB
- Stars: 5
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Security: SECURITY.md
Awesome Lists containing this project
README
Instagram Basic Display API Gem
===============================
A Ruby wrapper for the Instagram Basic Display APIInstallation
------------
`gem install instagram_basic_display_api`Instagram Basic Display API
---------------------------
Read the [documentation](https://developers.facebook.com/docs/instagram-basic-display-api).Sample Application
------------------```ruby
# 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# Refresh the access token
access_token = client.refresh_access_token
```