Exemplo n.º 1
0
<?php

require '../src/Instagram.php';
include 'data.php';
$i = new Instagram($username, $password, $proxy, $debug);
try {
    $i->login();
} catch (InstagramException $e) {
    $e->getMessage();
    exit;
}
try {
    $i->uploadPhoto($photo, $caption);
} catch (Exception $e) {
    echo $e->getMessage();
}