vk

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)

VK Web API (simple)

百般思念 提交于 2020-01-25 12:30:07
问题 I would like to call the method "photos.get" and retrieve photos from a VK community.The problem is that I am unable to view the oid i.e owner_id( one of the parameters required for the request) when I visit the URL. For example, when I browse a certain community, I end up getting a URL like "http://vk.com/picsa".Instead of this picsa, I require a number that can be passed in as an argument. How do I get the owner_id instead from the URL? 回答1: You can use groups.getById API method. It does

VK Web API (simple)

不打扰是莪最后的温柔 提交于 2020-01-25 12:29:12
问题 I would like to call the method "photos.get" and retrieve photos from a VK community.The problem is that I am unable to view the oid i.e owner_id( one of the parameters required for the request) when I visit the URL. For example, when I browse a certain community, I end up getting a URL like "http://vk.com/picsa".Instead of this picsa, I require a number that can be passed in as an argument. How do I get the owner_id instead from the URL? 回答1: You can use groups.getById API method. It does

VK Web API (simple)

百般思念 提交于 2020-01-25 12:29:06
问题 I would like to call the method "photos.get" and retrieve photos from a VK community.The problem is that I am unable to view the oid i.e owner_id( one of the parameters required for the request) when I visit the URL. For example, when I browse a certain community, I end up getting a URL like "http://vk.com/picsa".Instead of this picsa, I require a number that can be passed in as an argument. How do I get the owner_id instead from the URL? 回答1: You can use groups.getById API method. It does

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

Python, App Engine: HTTP multipart POST to Vk.Ads API

妖精的绣舞 提交于 2020-01-16 11:59:29
问题 I tried to sole this problem myself for a few days searching on examples and documentations, also it wasn't solved on ruSO. So, I hope that solution will be found here, on enSO. I develop a service for automatic creation of ads at Vk social network using Python and Google App Engine. Initially, pictures for ads are loaded to my server ( part 1 ), then they are uploaded to Vk server at some time ( parts 2.1 and 2.2 ). It seems that pictures are loaded and stored on my server correctly (I

How to insert content script in google chrome extension when page was changed via history.pushState?

让人想犯罪 __ 提交于 2020-01-13 09:10:52
问题 I'm creating a small google chrome extension for website, and I want to change some html on particular pages. The problem is that website load his content via ajax, and heavy use history.pushState API. So, I added this thing to manifest: "content_scripts": [ { "matches": ["http://vk.com/friends"], "js": ["js/lib/jquery.min.js", "js/friends.js"], }, ] Everything works fine when I'm opening page first time or reloading it. But when I'm navigating between website pages, chrome don't insert my

Spring social vk (Vkontakte): How to fetch user photo albums

时间秒杀一切 提交于 2019-12-29 09:57:13
问题 im trying to integrate some spring social projects into my project and now im searching for a way how to get users photo albums from vk/vkontakte. Getting the profile photo data is no problem as i can get it with the VKontakteProfile class. As the api https://vk.com/pages?oid=-17680044&p=getProfiles offers such function i was searching a api method but couldn't find... 回答1: To get user albums you must have an access_token because typically most uf users hide their albums from not autorized

why HttpClient.GetAsync causes opening link in browser?

此生再无相见时 提交于 2019-12-24 12:13:18
问题 Assume we have an application that wants access popular Russian social network VK and written on C# with WinForms GUI. VK uses OAuth2-similiar approach, so we need to open web browser with vk oauth authorization url. Then we subscribe to webBrowser's OnNavigated event and waiting until url will not be equal some pre-defined url with access token in query string. From now on we can call vk methods using received access token, but some strange things take place here: when i try to invoke some