vk-sdk

Does VK API support a search by file type?

落花浮王杯 提交于 2020-01-25 12:49:05
问题 Say I browse to a vk community and would like to be able to retrieve all of the gifs uploaded to that community, How would I go about this? 回答1: You can use method docs.get Access it by link https://api.vk.com/method/docs.get.xml?owner_id=- GROUP_ID &access_token= YOUR_ACCESS_TOKEN Read this my answer to know a bit more if you do not have an acess_token In result you will see a document with xml-format. (if you want to use json-response-format just remove " .xml " from link you're accessing)

Curl return false on hostinger server (curl enabled)

二次信任 提交于 2020-01-21 09:11:43
问题 Using: hostinger free php 5.5.26 curl enabled 7.19.7 "laravel/framework": "5.2.*" and "vladkens/vk": "^0.1.9" I'm getting false response( bool(false) ) using this function: private function request($url, $method = 'GET', $postfields = array()) { curl_setopt_array($this->ch, array( CURLOPT_USERAGENT =>"Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0", CURLOPT_RETURNTRANSFER => true, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_POST => ($method == 'POST'), CURLOPT

Curl return false on hostinger server (curl enabled)

≯℡__Kan透↙ 提交于 2020-01-21 09:11:36
问题 Using: hostinger free php 5.5.26 curl enabled 7.19.7 "laravel/framework": "5.2.*" and "vladkens/vk": "^0.1.9" I'm getting false response( bool(false) ) using this function: private function request($url, $method = 'GET', $postfields = array()) { curl_setopt_array($this->ch, array( CURLOPT_USERAGENT =>"Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0", CURLOPT_RETURNTRANSFER => true, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_POST => ($method == 'POST'), CURLOPT