N
N
Nikita Sazonov2019-01-17 16:01:48
PHP
Nikita Sazonov, 2019-01-17 16:01:48

PHP SDK VKAPI or CURL requests?

Hello. What do you use to work with VK?
What would be more profitable to use for purposes, such as, for example, eternal online or auto-posting ...
At the moment I use CURL requests, I heard / saw PHP SDK VKAPI, so I wonder if there is a big difference from CURL?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
bublik1337, 2019-01-17
@bublik1337

I see no reason to connect external libraries for a simple eternal online

@
@antoo, 2019-01-17
_

VK PHP SDK and cURL are different things, comparing them is tantamount to comparing warm with soft.
cURL is a library for sending HTTP requests, no matter where, its task is to send a request and get a response.
VK SDK is a wrapper for more convenient generation of requests and parsing of responses , the same cURL is used inside it - https://github.com/VKCOM/vk-php-sdk/blob/master/sr...
If working with the API is primitive , then cURL without wrappers is enough if you plan to work with the API on more complex tasks - it will be more convenient with the SDK.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question