TeshoTesho / Instagram-API

API Instagram, images, descriptions, others
MIT License
3 stars 0 forks source link

Instagram API

Obs: Deixou de funcionar em: 04/05/2021.

Português

API Desenvolvida Por: Nicolas L. Araujo

Instalação

Basta adicionar a api dentro do arquivo e declarar a classe

require "instagram_api.php";
$insta = new InstagramApi;

Modo de Usar

Você precisa definir um usuário do instagram

Como exemplo, utilizado a conta @neymarjr

$user = $insta->instagram("neymarjr"); 

Então você pode abusar da api enquanto funciona.

$post = $insta->get_single_post_profile($user,2); // Second Post
$image_url = $post["image"][0]["url"]; // Collect image in var
echo "<img src='$image_url'>"; // Publish in html img

English

API Developed By: Nicolas L. Araujo

Installation

Just add the api inside the file and declare the class

require "instagram_api.php";
$insta = new InstagramApi;

How to use

You need to define an instagram user

As an example, using the @neymarjr account

$user = $insta->instagram("neymarjr"); 

Then you can abuse the api while it works.

$post = $insta->get_single_post_profile($user,2); // Second Post
$image_url = $post["image"][0]["url"]; // Collect image in var
echo "<img src='$image_url'>"; // Publish in html img

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT