All this is a ready-made solution for the VK api.

Related tags

API VKapi
Overview

VKapi

Instructions for VK API

Tweet Status GitHub Issues GitHub Issues


💡 Instructions using my ready-made solution 💡

Table of Contents

Introduction

All this is a ready-made solution for the VK api. I am providing you with a file, already with ready-made functions for all operations, so far there is only one, this is class.php.

Connect the file to your project, and then just call all the necessary functions. An example of the initial page is shown in index.php

There are a lot of methods in the VK api, so I have divided the readme into categories, with each addition of a new method, I will add to the description of functions.

First, get your token! Go to the description.

Users

Methods for working with user data.

users.get

Returns extended user information.

For this method, I have two functions:

  • The first one returns only the token. getUserToken
  • The second returns only the id. getUserId

In both functions, it is necessary to pass the first parameter to the user's login, often this is a phone number, and the second parameter is the user's password. ($login, $password)

users.getFollowers

Returns a list of user IDs that are subscribers of the user.

There are also two functions for this request.

  • The first one is necessary to get a lot of subscribers with their ID. getFollowersItems
  • The second is to get the number of subscribers currently. getFollowersCount

To work, you need to pass the token parameter. ($token)

users.getSubscriptions

Returns a list of user IDs and public pages that are included in the list of user subscriptions.

There are also two functions for this request.

  • The first one is necessary to get a lot of subscriptions with their ID. getSubscriptionsItems
  • The second is to get the number of subscriptions currently. getSubscriptionsCount

To work, you need to pass the token parameter. ($token)

Friends

Methods for working with friends.

friends.get

Returns a list of the user's friend IDs or extended information about the user's friends (when using the fields parameter).

There are also two functions for this request.

  • The first one is necessary to get an array of friends with their id. getFriendsItems
  • The second is to get the number of users currently getFriendsCount

To work, you need to pass the token parameter. ($token)

friends.delete

Removes a user from the friends list or rejects a friend request.

The function for deleting friends accepts an array with the user id and a token. deleteFriends($id_friend = [], $token)

If an error occurred (invalid id, error in the process,...), an error will appear, otherwise it will output true.

You might also like...
This API provides functionality for creating and maintaining users to control a simple To-Do-List application. The following shows the API structure for users and tasks resources.
This API provides functionality for creating and maintaining users to control a simple To-Do-List application. The following shows the API structure for users and tasks resources.

PHP API TO-DO-LIST v.2.0 This API aims to present a brief to consume a API resources, mainly for students in the early years of Computer Science cours

API documentation API SCB EASY APP

SCB-API-EASY V3.0 API documentation SIAM COMMERCIAL BANK PUBLIC COMPANY LTD. API SCB Easy V3 endpoint = https://fasteasy.scbeasy.link 1.0. Get balance

Courier API adalah project API untuk mengetahui ongkos kirim Logistik-logistik pengiriman barang antar kota & International
Courier API adalah project API untuk mengetahui ongkos kirim Logistik-logistik pengiriman barang antar kota & International

Courier API Courier API adalah project API untuk mengetahui ongkos kirim Logistik-logistik pengiriman barang antar kota (dalam negeri) & International

Laravel api tool kit is a set of tools that will help you to build a fast and well-organized API using laravel best practices.
Laravel api tool kit is a set of tools that will help you to build a fast and well-organized API using laravel best practices.

Laravel API tool kit and best API practices Laravel api tool kit is a set of tools that will help you to build a fast and well-organized API using lar

LaraBooks API - Simple API for iOS SwiftUI app tests.

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Simple PHP API client for tube-hosting.com rest API

Tube-Hosting API PHP client Explanation This PHP library is a simple api wrapper/client for the tube-hosting.com api. It is based on the provided docu

Best resources restful api for developers (with JSON:API standar specification design)

List API Best resources restful api for developers (with JSON:API standar specification design). API Resource Endpoint Name Resource Description Al Qu

Chargebee API PHP Client (for API version 2 and Product Catalog version 2.0)

chargebee-php-sdk Overview This package provides an API client for Chargebee subscription management services. It connects to Chargebee REST APIs for

GraphQL API to Studio Ghibli REST API

GhibliQL GhibliQL is a GraphQL wrapper to the Studio Ghibli REST API Usage First, you'll need a GraphQL client to query GhibliQL, like GraphQL IDE Con

Releases(pre-release-1.1)
  • pre-release-1.1(Sep 18, 2021)

  • pre-release(Sep 17, 2021)

    Added initial queries. While everything is done through functions, in the future it will be done through a class or it will remain the same (through functions). Main functions:

    • getting an id and access token;
    • getting a list of friends;
    • deleting your friends list;
    • getting a list of subscribers.
    Source code(tar.gz)
    Source code(zip)
Owner
Dima Gashuk
Dima Gashuk
PHP REST API without using any frameworks. Contains all CRUD operations.

PHP REST API without any framework and CRUD operations ?? Hi there, this is a simple REST API built in PHP without using any frameworks. This is built

Hanoak 10 Sep 5, 2022
Easily integrate custom-made NPS (Net Promoter Score) into your application

Laravel NPS Easily integrate custom-made NPS (Net Promoter Score) to your application. Installation You can install the package via composer: composer

H-FARM Innovation 48 Oct 27, 2022
Simple and effective multi-format Web API Server to host your PHP API as Pragmatic REST and / or RESTful API

Luracast Restler ![Gitter](https://badges.gitter.im/Join Chat.svg) Version 3.0 Release Candidate 5 Restler is a simple and effective multi-format Web

Luracast 1.4k Dec 14, 2022
STEAM education curriculum centered on building a new civilization entirely from trash, which provides all human needs for free directly to the local community

TRASH ACADEMY STEAM(Science Technology Engineering Art Math) education curriculum centered around building self-replicating technology from trash whic

Trash Robot 3 Nov 9, 2021
Meta package tying together all the key packages of the Symfony CMF project.

This repository is no longer maintained Due to lack of interest, we had to decide to discontinue this repository. The CMF project focusses on the Rout

Symfony CMF 733 Dec 21, 2022
This project lists all the mandatory steps I recommend to build a Website using Symfony, Twig, Doctrine.

{% raw %} <-- keep this for Jekyll to fully bypass this documents, because of the Twig tags. Symfony Website Checklist ?? Summary~~~~ Elevator pitch P

William Pinaud 6 Aug 31, 2022
A list of all the Belgian stations and their properties used within the iRail project

All stations in Belgium We try to maintain a list of all the stations in Belgium using CSV so everyone can help to maintain it on github. Furthermore,

null 33 Nov 16, 2022
Place where I record all knowledge gained for GraphQL from Laracasts & other tutorials.

Knowledge from Laracasts series: https://laracasts.com/series/graphql-with-laravel-and-vue What is GraphQL It is a query language for your API, and it

Nikola 0 Dec 26, 2021
This API aims to present a brief to consume a API resources, mainly for students in the early years of Computer Science courses and the like.

Simple PHP API v.1.0 This API aims to present a brief to consume a API resources, mainly for students in the early years of Computer Science courses a

Edson M. de Souza 14 Nov 18, 2021
微信支付 API v3 的 PHP Library,同时也支持 API v2

微信支付 WeChatPay OpenAPI SDK [A]Sync Chainable WeChatPay v2&v3's OpenAPI SDK for PHP 概览 微信支付 APIv2&APIv3 的Guzzle HttpClient封装组合, APIv2已内置请求数据签名及XML转换器,应

null 275 Jan 5, 2023