All Projects → bnomei → kirby3-instagram

bnomei / kirby3-instagram

Licence: MIT License
Kirby 3 Plugin to call Instagram (or any other) API Endpoints

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to kirby3-instagram

kirby3-redirects
Setup HTTP Status Code Redirects from within the Kirby Panel
Stars: ✭ 14 (-30%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
kirby3-doctor
Plugin to check health of your CMS installation
Stars: ✭ 19 (-5%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
kirby-minify-html
Enable minify HTML output for Kirby 3
Stars: ✭ 27 (+35%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
kirby3-ray
Helper tool that enables ray on all the extendable methods.
Stars: ✭ 17 (-15%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
k3-image-clip
Visually crop images with a handy image editor directly inside the panel
Stars: ✭ 38 (+90%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
kirby3-bolt
Kirby 3 Plugin for a fast Page lookup even in big content trees
Stars: ✭ 24 (+20%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
komments
A Kirby 3 comment plugin
Stars: ✭ 28 (+40%)
Mutual labels:  kirby3, kirby3-plugin
jekyll-instagram
A Jekyll plugin for displaying your recent Instagram photos
Stars: ✭ 24 (+20%)
Mutual labels:  instagram, instagram-api
MyIGBot
MyIGBot is a Private API for Instagram to like, follow, comment, view & intaract with stories, upload post & stories, get all information about a user/posts and get posts based on locations/hashtags. It also supports proxy.
Stars: ✭ 137 (+585%)
Mutual labels:  instagram, instagram-api
instapi
📷 Python Instagram API
Stars: ✭ 33 (+65%)
Mutual labels:  instagram, instagram-api
instagram-oauth-nodejs-server
Node.js server for Intagram-API OAuth purpose.
Stars: ✭ 12 (-40%)
Mutual labels:  instagram, instagram-api
Flutter-Photoarc-app
(Full-stack) Fully functional social media app (Instagram clone) written in flutter and dart with backend node.js and Postgres SQL.
Stars: ✭ 38 (+90%)
Mutual labels:  instagram, instagram-api
instagram-get-images
Instagram get images 🌄 (hashtags, account, locations) with puppeteer
Stars: ✭ 69 (+245%)
Mutual labels:  instagram, images
Brutegram
Instagram multi-bruteforce Platfrom
Stars: ✭ 183 (+815%)
Mutual labels:  instagram, instagram-api
instagram-token-agent
A service to keep your Instagram Basic Display API token fresh.
Stars: ✭ 118 (+490%)
Mutual labels:  instagram, instagram-api
nanogram.js
📷 An easy-to-use and simple Instagram package that allows you to fetch media content without API and access token.
Stars: ✭ 62 (+210%)
Mutual labels:  instagram, instagram-api
Insta flters with python
With this program you can add hat & glass on your face(it's support multiple faces)
Stars: ✭ 21 (+5%)
Mutual labels:  instagram, instagram-api
instragram-follow
Automatically follow Instagram accounts
Stars: ✭ 23 (+15%)
Mutual labels:  instagram, instagram-api
Instagram Proxy Api
CORS compliant API to access Instagram's public data
Stars: ✭ 245 (+1125%)
Mutual labels:  instagram, instagram-api
instagram-api-clone
Instagram RESTful API clone made with Django REST framework
Stars: ✭ 56 (+180%)
Mutual labels:  instagram, instagram-api

Kirby 3 Instagram

Release Stars Downloads Issues Build Status Coverage Status Maintainability Demo Gitter Twitter

Kirby 3 Plugin to call Instagram (or any other) API Endpoints

  1. Instagram
  2. Any API

Commercial Usage

This plugin is free but if you use it in a commercial project please consider to

Installation

  • unzip master.zip as folder site/plugins/kirby3-instagram or
  • git submodule add https://github.com/bnomei/kirby3-instagram.git site/plugins/kirby3-instagram or
  • composer require bnomei/kirby3-instagram

Setup

You can set the token in the config.

site/config/config.php

return [
    // other config settings ...
    'bnomei.instagram.token' => 'YOUR-TOKEN-HERE',
];

You can also set a callback if you use the dotenv Plugin.

site/config/config.php

return [
    // other config settings ...
    'bnomei.instagram.token' => function() { return env('INSTAGRAM_TOKEN'); },
];

Usage

Instagram

site/templates/default.php

<?php
    // default. this will cause loading from the config file or set it here...
    $token = null; 
    $token = 'YOUR-TOKEN-HERE';
    $endpoint = 'users/self/media/recent';
    $params = [
        'count' => 4
    ];
    $force = null; // default. this will cause refresh on global debug == true
    // $force = true; // always force refresh
    foreach(site()->instagram($token, $endpoint, $params, $force) as $data) {
        echo Kirby\Toolkit\Html::img(
            $data['images']['standard_resolution']['url']
        );
    }

TIP: all site()->instagram() function parameters are optional if their value is set in config.

Any API

Since you can configure the api-url, endpoint and json-root data element you could actually query any API you want not just Instagram.

$inst = new Bnomei\Instagram([
    'token' => null,
    'api' => 'https://repo.packagist.org/',
    'endpoint' => 'p/bnomei/kirby3-instagram.json',
    'json-root' => 'packages',
]);
$data = $inst->api()['bnomei/kirby3-instagram']['1.2.0']['authors'][0]['name'];
// Bruno Meilick

TIP: since the params can be a callback you can forward any data you want and again even from an .env file. Go wild!

Cache

This plugin does have a cache unless global debug options is set or your $force the refresh because the instagram api will stop working if you push to may requests in a short period of time.

Settings

bnomei.instagram. Default Description
expire 60*24 in minutes. 0 will never expire (aka forever).
token null you could add a default token
api https://api.instagram.com/v1
endpoint users/self/media/recent you could change default endpoint
params [] you could change default params for api
json-root data node to unwrap in json response

TIP: All setting params could be callbacks. Example see Setup with DotEnv.

Disclaimer

This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.

License

MIT

It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].