2017 © Pedro Peláez
 

library instagrammedia

A simple library to get posts from instagram public profiles

image

gildonei/instagrammedia

A simple library to get posts from instagram public profiles

  • Thursday, February 22, 2018
  • by gildonei
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 7 % Grown

The README.md

InstagramMedia

Build Status Latest Stable Version, (*1)

Permite ao usuário obter as imagens do Instagram após o registro da App dentro do instagram. - https://www.instagram.com/developer/, (*2)

Versão PHP

5.6+, (*3)

Exemplo de uso

<?php
// Pode ser obtido em: https://smashballoon.com/instagram-feed/find-instagram-user-id/
$userId = 'self';
// Tutorial de como obter o access token - https://blog.difluir.com/2016/06/como-criar-um-aplicativo-e-pegar-o-access-token-no-instagram/
$accessToken = 'xxxxxxxxxx.xxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$objInstagram = new InstagramMedia\InstagramMedia($userId, $accessToken);
$data = $objInstagram->getMedia(10); // Máximo de 20
/*
Retorna um array com os dados
[0] => [
       'link' => URL do Post
       'type' => Tipo do Post,
       'thumb' => URL da imagem do thumbnail,
       'low' => URL da imagem em baixa resolução
       'std' => URL da imagem em resolução padrão
       'qtd_likes' => Quantidade de likes
       'qtd_comments' => Quantidade de comentários
    ]
]...
*/
?>

Composer

Adicione { "gildonei/instagrammedia": "dev-master" } no require do seu projeto., (*4)

License

  • MIT License

The Versions

22/02 2018

dev-master

9999999-dev https://github.com/gildonei/instagrammedia

A simple library to get posts from instagram public profiles

  Sources   Download

MIT

The Requires

  • php >=5.6

 

by Gildonei Mendes Anacleto Junior

php instagram instagrammedia

30/08 2017

1.0

1.0.0.0 https://github.com/gildonei/instagrammedia

A simple library to get posts from instagram public profiles

  Sources   Download

MIT

The Requires

  • php >=5.6

 

by Gildonei Mendes Anacleto Junior

php instagram instagrammedia