deliciousdishes/vk-api-client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

deliciousdishes/vk-api-client

Composer 安装命令:

composer require deliciousdishes/vk-api-client

包简介

VK API Client for PHP

关键字:

README 文档

README

Dependency Status

VKontakte API Client for PHP

##Installation

If you're usage Composer, which we recommend, add record in your composer.json file

{
  "require":{
    ...
    "deliciousdishes/vk-api-client": "dev-master"
    ...
  },
  "repositories":[
        ...
        {
            "type": "git",
            "url": "https://github.com/mdimaas/vk-php-api-client"
        }
        ...
  ]
  
}

##Example usage

For get URL by authorization in VK

$helper = new \DeliciousDishes\VKLoginHelper("http://yoursite.com", "your_app_id", "your_app_secret", array("email", ...,"offline"));
$url = $helper->getLoginUrl();

After click by link VK redirected in back with secure code in GET parameter. Now get VK session by secure code. Example:

$helper = new \DeliciousDishes\VKLoginHelper("http://yoursite.com", "your_app_id", "your_app_secret", array("email", ...,"offline"));
$helper->getSession(); 
// or if your secure code saved in var
// $helper->getSession($secureCode); 

Session stores current user id $session->getUserId() For send request in VK API. Example get user information by ids:

$request = new \DeliciousDishes\VKRequest($session, "users.get", array("user_ids" => $session->getUserId(),"fields" => "email,..."));
$response = $request->execute()->getResponseData();

Result query: mixed the value encoded in json in appropriate PHP type.

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-06