2017 © Pedro Peláez
 

library vk-auth

tiny lib to get vk auth cookie (remixsid) using valid mobile phone number and password

image

anfa/vk-auth

tiny lib to get vk auth cookie (remixsid) using valid mobile phone number and password

  • Monday, January 22, 2018
  • by biganfa
  • Repository
  • 1 Watchers
  • 7 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

vk-auth

tiny lib to get vk auth cookie (remixsid) using valid mobile phone number and password, (*1)

install via composer

composer require anfa/vk-auth:^1.0

usage


$agent = new \VkAuth\VkAuthAgent($vkCell, $vkPassword); $remixsid = $agent->getRemixsid(); // makes few http requests to vk.com and returns valid remixsid value // CookieJar object for usage in Guzzle Client, see [guzzle docs](http://docs.guzzlephp.org/en/latest/quickstart.html#cookies) $jar = $agent->getAuthorizedCookieJar();

example

there is an example.php command-line script. It will print friends list of the account. To run it, you need to create a file called test_login_pass_constants.php which contains two required constants (valid vk mobile phone & password), e.g., (*2)

<?php
const TEST_VK_LOGIN = '81234567890';
const TEST_VK_PATH = 'password';

run it, (*3)

php example.php

The Versions

22/01 2018

dev-master

9999999-dev

tiny lib to get vk auth cookie (remixsid) using valid mobile phone number and password

  Sources   Download

WTFPL

The Requires

 

authorization vkontakte vk remixsid