Answer the question
In order to leave comments, you need to log in
How to URL encode "+" character for VK API execute in C#?
I want to execute the code, but the "+" symbol is not transmitted...
I send it like this:
string code = ....;
string reqStr = string.Format(
"https://api.vk.com/method/execute?access_token={0}&code={1}&version=5.37", ACCESS_TOKEN,code);
WebClient webClient = new WebClient();
string photocount = webClient.DownloadString(reqStr);//количество фото в альбоме группы
var photos = API.photos.get({"owner_id":-35001375,"album_id":"210619562"}).items;
var offset = 1000;
while (offset < 20001)
{
photos=photos+ API.photos.get({ "owner_id":-35001375,"album_id":"210619562","offset":offset}).items;
offset = offset+1000;
}
return photos;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question