PHP class for working with VK API

1.1.0 2015-09-07 18:14 UTC

This package is auto-updated.

Last update: 2024-05-06 08:22:34 UTC


README

Total Downloads Latest Stable Version Latest Unstable Version License

PHP class for working with VK API

Usage

  1. Connect class

     require('VK.php');
    
  2. Create VK object

    1. without access token (examples/example-1.php)

       $vk = new MAKSA\VKAPI('{APP_ID}', '{API_SECRET}');
      
    2. with access token (examples/example-2.php)

       $vk = new MAKSA\VKAPI('{APP_ID}', '{API_SECRET}', '{ACCESS_TOKEN}');
      
  3. Usage API

     $vk->api('{METHOD_NAME}', '{PARAMETERS}');
    

Other methods

  • Set version of API. $vk->setApiVersion({NUBMER});

Variables

  • {APP_ID} — Your application's identifier.
  • {API_SECRET} — Secret application key.
  • {ACCESS_TOKEN} — Access token.
  • {METHOD_NAME} — Name of the API method. All methods.
  • {PARAMETERS} — Parameters of the corresponding API methods.

Development

Author

Website: Maksa988 Email: admin@maksa988.ru