Орла
Области
Компаний
Пользователи
Галерея
Фиксированные новости
Орла
Отзывы о фирмах
Тарифы
Пользователи
Области
Банкоматы
Торговые точки
Доска объявлений
Курсы валют
Скидки
организации Орла
организации области
товары
сайты
сайты Орел
Данные
Разделы
Поиск
Поиск запросы
Статистика
Показы каталога организаций
Статистика клиенты
Пользователи
Сайты
Управление сайтом
Анкета
Аптеки
Афиша
Афиша новая
Баннеры
Бизнес >
Викторина
Голосование
Гость на сайте
Истории
Календарь событий
Каталоги >
Конкурс красоты
Конкурс аудио
Консультации
Меню
Новое на сайте
Новости >
Организации >
Программа ТВ
Публикации
Разделы сайта
Рассылка
Рестораны
Секрет фирмы >
Сервисы >
Ссылки
Тесты
Файловый менеджер
Форум
Фотогалерея
Обратная связь
Недвижимость
Новый год
Тексты
Пользователи
Юридический рейтинг
Отзывы на товары
Бан пользователей
Жалобы
Новые тесты
Коронавирус
Файловый менеджер
Имя файла
rankTokenUsage.php
Содержимое
<?php set_time_limit(0); date_default_timezone_set('UTC'); require __DIR__.'/../vendor/autoload.php'; /////// CONFIG /////// $username = ''; $password = ''; $debug = true; $truncatedDebug = false; ////////////////////// $ig = new \InstagramAPI\Instagram($debug, $truncatedDebug); try { $ig->login($username, $password); } catch (\Exception $e) { echo 'Something went wrong: '.$e->getMessage()."\n"; exit(0); } try { // Let's list media for the "nature" hashtag. $tag = 'nature'; // Generate a random rank token. $rankToken = \InstagramAPI\Signatures::generateUUID(); // Starting at "null" means starting at the first page. $maxId = null; do { // Request the page corresponding to maxId. // Note that we are using the same rank token for all pages. $response = $ig->hashtag->getFeed($tag, $rankToken, $maxId); // In this example we're simply printing the IDs of this page's items. foreach ($response->getItems() as $item) { printf("[%s] https://instagram.com/p/%s/\n", $item->getId(), $item->getCode()); } // Now we must update the maxId variable to the "next page". // This will be a null value again when we've reached the last page! // And we will stop looping through pages as soon as maxId becomes null. $maxId = $response->getNextMaxId(); // Sleep for 5 seconds before requesting the next page. This is just an // example of an okay sleep time. It is very important that your scripts // always pause between requests that may run very rapidly, otherwise // Instagram will throttle you temporarily for abusing their API! echo "Sleeping for 5s...\n"; sleep(5); } while ($maxId !== null); // Must use "!==" for comparison instead of "!=". } catch (\Exception $e) { echo 'Something went wrong: '.$e->getMessage()."\n"; }
/cron/instagram/vendor/mgp25/instagram-php/examples/
Имя
Дата
Размер
..
2019-01-15
assets
2019-01-15
README.md
2019-01-15
773 байт
accessingValues.php
2019-01-15
3 кб.
customSettings.php
2019-01-15
7 кб.
exceptionDetailsExample.php
2019-01-15
3 кб.
liveBroadcast.php
2019-01-15
4 кб.
paginateWithExclusion.php
2019-01-15
2 кб.
paginationExample.php
2019-01-15
2 кб.
pushReceiver.php
2019-01-15
2 кб.
rankTokenUsage.php
2019-01-15
2 кб.
realtimeClient.php
2019-01-15
5 кб.
realtimeHttp.php
2019-01-15
11 кб.
sharePhotoToStoryFeed.php
2019-01-15
2 кб.
shortcodeConverter.php
2019-01-15
819 байт
twoFactorLogin.php
2019-01-15
960 байт
uploadAlbum.php
2019-01-15
3 кб.
uploadPhoto.php
2019-01-15
2 кб.
uploadStory.php
2019-01-15
4 кб.
uploadStoryPoll.php
2019-01-15
3 кб.
uploadVideo.php
2019-01-15
2 кб.
/cron/instagram/vendor/mgp25/instagram-php/examples
Загрузить файлы
Файл 1
Файл 2
Файл 3