@Nocleep Proxiware.com, isn't that the provider that gives you all the proxies in an completely nonsense format that can't nearly be used with any program (separating the sticky session ids and durations with : and so on), or do I confuse something there?
Интсграм Post/GET
-
@Alex7_7 said in Интсграм Post/GET:
Кто знает подскажите можно ли реализовать через post/get запросы Лайк фото и подписку (клик) в инстаграм? Аккаунт уже авторизован (есть куки).
Всё в интернете работает на запросах, основная проблема будет в том, сможете ли вы сгенерировать все необходимые токены защиты для запроса
-
@Fox такого опыта нет, нашел несколько примеров https://gist.github.com/cosenary/8322459, не знаю как их запустить через BAS, через "Выполнить код" и вставить этот код со своими параметрами? или как-то по другому?
<?php
require 'Instagram.php';
use MetzWeb\Instagram\Instagram;$instagram = new Instagram(array(
'apiKey' => 'YOUR_APP_KEY',
'apiSecret' => 'YOUR_APP_SECRET',
'apiCallback' => 'YOUR_APP_CALLBACK' // must point to success.php
));// set user's accesstoken (can be received after authentication)
$instagram->setAccessToken("2823787.9687902.21u77429n3r79o08233122306fa78902");// follow user (snoopdogg)
$result = $instagram->modifyRelationship('follow', 1574083);// receive the list of users this user follows
$follows = $instagram->getUserFollows();// dump response object
echo '<pre>';
print_r($follows);
echo '<pre>'; -
@Alex7_7 said in Интсграм Post/GET:
@Fox такого опыта нет, нашел несколько примеров https://gist.github.com/cosenary/8322459, не знаю как их запустить через BAS, через выолнить код и вставить этот код с параметрами? или как-то по другому?
<?php
require 'Instagram.php';
use MetzWeb\Instagram\Instagram;$instagram = new Instagram(array(
'apiKey' => 'YOUR_APP_KEY',
'apiSecret' => 'YOUR_APP_SECRET',
'apiCallback' => 'YOUR_APP_CALLBACK' // must point to success.php
));// set user's accesstoken (can be received after authentication)
$instagram->setAccessToken("2823787.9687902.21u77429n3r79o08233122306fa78902");// follow user (snoopdogg)
$result = $instagram->modifyRelationship('follow', 1574083);// receive the list of users this user follows
$follows = $instagram->getUserFollows();// dump response object
echo '<pre>';
print_r($follows);
echo '<pre>';В BAS не поддерживается php
-
@Alex7_7 said in Интсграм Post/GET:
@Fox said in Интсграм Post/GET:
require 'Instagram.php';
Тогда вставить код через веб интерфейс BAS, он поддерживает php же? Выполнить этот код, получить значение (подписались или нет) и передать его в BAS?
Нет, веб интерфейс тоже не поддерживает php, с чего вы это взяли?
-
@Fox еще один пример, этот на вид походящий
https://api.instagram.com/v1/users/[user-id]/relationship?access_token=[ACCESS-TOKEN]
You must modify for you the relationship between the current user and the target user.PARAMETERS:
ACCESS_TOKEN A valid access token.
ACTION One of: follow/unfollow/block/unblock/approve/deny.
So if you're logged in, you should fetch the valid access token after that, you can choose your action follow or unfollow with user-id.Полагаю этот так должно выглядеть в запросе через BAS (парметр Action выбирается одни из нужных)?
